-
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
Modal notification does not render newlines or have a max-width #8071
Comments
@tetchel would you like to prepare a pull-request to address the issue? |
Known limitation: #7283 (comment)? |
The limitation is only for notification messages (toasts) similarly to vscode. The issue I believe is that we likely do not handle template literal newlines and we don't have a |
Yes, that was clear. |
Unless we use vscode.window.showWarningMessage(<msg>, { modal: true }) |
I see your point. Is it a missing feature? So when |
The custom dialog that I sent a screenshot of is the modal implementation that we currently have (we do not use the browser modal). The issue is that we probably do not support string literals with newlines (which is what the codewind extension uses), and we likely do not have any |
Bug Description:
A modal dialog shown using
does not render newlines or have a max-width, which makes long messages stretch the dialog the width of the viewport, which looks weird.
Steps to Reproduce:
Have a modal notification with a long message in it and newlines. In VS Code, the text is wrapped, and newlines are rendered.
But in Theia, the newlines are ignored, and the dialog stretches.
Additional Information
The text was updated successfully, but these errors were encountered: