-
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
core: fix displaying for large ConfirmDialog
dialogs
#12052
core: fix displaying for large ConfirmDialog
dialogs
#12052
Conversation
Signed-off-by: Jonah Iden <[email protected]>
I pushed a commit adding a sample command to try your feature and it seems like there is a bug: The text seems to be truncated where if the text is big enough it only displays the 100 last lines or so? |
oh yeah your totally right. Seems to be because of the display: flex. I'll look into it |
Signed-off-by: Jonah Iden <[email protected]>
Signed-off-by: Jonah Iden <[email protected]>
Signed-off-by: Jonah Iden <[email protected]>
ConfirmDialog
dialogs
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.
Looks good to me 👍 I can confirm that this addresses the overflow and the newline issue.
@jonah-iden @msujew I believe we should revert the changes or fix the regressions since the changes break dialogs like "open folder": |
thats not good at all. Im really sorry for that. |
Signed-off-by: Jonah Iden <[email protected]>
See #12052 (comment) Signed-off-by: Jonah Iden <[email protected]>
Signed-off-by: Jonah Iden [email protected]
What it does
Fixes: #11985.
smaller css fixes for the confirm dialog so that it respects linebreaks and is scrollable in case of too much text.
I used pre-line for automatic line breaks so the dialog only needs vertical scroll though it could be nice if stacktraces or simmilar long lines are supposed to be displayed in it, to also give it horizontal scrolling
How to test
in
sample-menu-contributions.ts
in the sample command instead of returning an alert we can create a ConfirmDialog.something like this
clicking on sampleCommand in theia should then open the dialog with scrollable multiline message.
Review checklist
Reminder for reviewers