-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nearby view new alwaysShowLongName
setting
#1237
nearby view new alwaysShowLongName
setting
#1237
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thoughts on adding pattern.route.longName
to the conditional?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good to me!!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
@@ -101,6 +103,11 @@ const PatternRow = ({ | |||
/> | |||
</span> | |||
<span style={{ wordBreak: 'break-word' }} title={pattern.headsign}> | |||
{alwaysShowLongName && !!pattern.route.longName && ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the idea of avoiding the crash and having layout issues. Maybe insert a comment here, warning about the potential layout issues to compliment the comment in the config?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea
Description:
If this is enabled we will show a route long name always, regardless of if there is a duplicate. Only to be enabled in special use cases.