-
Notifications
You must be signed in to change notification settings - Fork 1.7k
What-If Tool: Fix error message overflow issue #2462
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
Conversation
|
@tolga-b please review |
tolga-b
left a comment
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.
LGTM.
| .datapoint-right-controls-holder { | ||
| display: flex; | ||
| flex-direction: row-reverse; | ||
| overflow: hidden; |
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 think it is more correct to put flex-shrink: 0; and remove the min-width.
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 did try that but it doesn't work. With this container having flex-shrink: 0, the child div with lots of text will still cause this container to grow in width beyond the screen, leading to the issue.
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.
moved to flex-shrink: 0 for the two buttons as you suggested and removed the min-width setting for the button.
still need the overflow: hidden on the right-controls-holder to avoid overflow.
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.
Yup, understand that now.
|
Btw, I think the text/buttons should be vertically aligned :) |
adjusted margin so that status text matches alignment for left-side tab text and right side buttons. Thanks. |
| white-space: nowrap; | ||
| overflow: hidden; | ||
| text-overflow: ellipsis; | ||
| padding-top: 16px; |
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.
Oh, I think the more robust solution is to use align-items: center on flex container and remove all these padding/margins.
Long WIT error messages caused text overflow, hiding some controls.
Added correct CSS rules to avoid overflow issue and to ellipsis the status string. The full error string is already shown in a toast as well.
Fixed:

Ran demo app, added fake very long error message, verified correct visual behavior (and incorrect behavior before fix).