-
Notifications
You must be signed in to change notification settings - Fork 2
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
fix: Allow line wrapping on flex zone alerts. #2094
Conversation
Coverage of commit
|
Perhaps you've already thought about this, but could it make sense to handle this with CSS? In other words, always apply the no-wrap spans, but conditionally ignore them in the styles scoped to the appropriate components. This feels like it would be a less complex approach than having two different ways of generating the data on the server, and matches a presentation-level issue with a presentation-level fix. |
@digitalcora The difficulty with that is preventing line breaks between issue, location, and cause. The flexzone component assumes that |
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.
🉑
Can you tell off-hand whether this would resolve this crash on pre-fare audio readouts? |
Hmm, that may actually be a separate issue. The visuals are fine for that alert, but the audio view isn't expecting the location to be anything but a |
Right, I thought since you changed this to an approach of only providing a FreeText value when specifically requested, that it might be a plain string once again for the audio view. |
That change was focused specifically on flex zone alerts. The alert showing on that screen is full screen, which was what the original task was meant for. There looks to be a missing piece to the audio view for single screen alerts after the original change. I'm willing to own fixing that issue as well since I missed it in my review. Can start that after merging this. |
Asana task: ad-hoc
When I reviewed #2068, I didn't think about flex zone alerts. Because of the limited space on those, we should allow station names to wrap. Tweaked function a bit so that it returns a string for flex zone alerts.