-
Notifications
You must be signed in to change notification settings - Fork 27.9k
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
Limit the size of the dialog box and let the message overflow #209840
base: main
Are you sure you want to change the base?
Conversation
In case the error message is too large the dialog box can be too big and not fit into the screen. Add a height limit for the details message and let it overflow with scrollbars.
Friendly ping |
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 actually wonder if we should address this for both custom and native dialogs (see #87266) and simply cut the message and the detail off when it becomes very large. We could cut it of in the middle and add a "..." ellipsis. Then, this fix becomes something to be changed here, rather than CSS:
This is the abstract dialog handler used for both web and desktop (custom and native) and it could massage the options to reduce their length. |
Thank you for the review and comments!
I made the whole message container scrollable, this should fix the problem of a very large message too.
This was my initial approach actually, but in the end I've decided against it:
I did not think of the native dialogs though. Is it possible to make them scrollable too? |
@bpasero do you think my updated fix is fine or would you still prefer to truncate the message in the base dialog handler? |
In case the error message is too large the dialog box can be too big and not fit into the screen. Add a height limit for the details message and let it overflow with scrollbars.