-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
[dialogs] improve display of dialogs #6905
Comments
We can add a new optional parameter to theia/packages/core/src/browser/dialogs.ts Lines 24 to 26 in 8dcd431
|
Can I work on this? |
Sure! 👍 |
I've created the instance variable how do I implement the maxWidth part? |
I was thinking of adding a new optional property to the Then we can do something like the following in the constructor of a dialog: this.container.setAttribute(`style`, `max-width: ${max-width} px`); Callers could do the following: new ConfirmDialog({
title: 'title'
maxWidth: 150,
msg: 'msg',
ok: 'yes',
cancel: 'No'
}); |
@vince-fugnitto Would using |
Closed by #7080 |
Description
Currently, dialogs which have a lot of content are not properly displayed (width-wise).
In order to fix their entire content, the dialog will take up as much width as possible which gives off a poor UX. Instead of placing the responsibility on developers to place carriage returns, the application should define proper
max-width
rules to enforce a consistent layout.Developers are still free to extend existing dialogs in order to style them as they so choose.
For example:
The text was updated successfully, but these errors were encountered: