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
FileViewer: Don't show too many lines in MessageBox #10710
base: master
Are you sure you want to change the base?
FileViewer: Don't show too many lines in MessageBox #10710
Conversation
Could you please share screenshots before and after?
|
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, have not run
I think a truncation indicator is not necessary in this case.
As russkie requested, please provide screenshots in all PRs.
Move screenshot in PR description |
Move more screenshot in PR description |
Thanks for these. Makes ssens.
We could additionally use TaskDialog with collapsible middle panel that
would contain the diff.
|
496bb1a
to
5edc68a
Compare
Use TaskDialog. It's sad that indent is lost. But since I couldn't use a monolith font, indent will always be wrong. |
Could you please share a new screenshot?
|
Added in description. Sorry, I started to update the main description but I forget to click on "Update" button :/ |
@bansan85 I'm not 100% convinced by the design. Like it has been done in #10436... We could have for the task dialog something like:
What do you think? |
Totally agree !! I didn't knew about TaskDialog before yesterday. I will try to improve it. |
Kudos @pmiossec for providing the links. I didn't have those handy. |
@bansan85 a friendly nudge. Is this still something you're working on? |
5edc68a
to
016f8c1
Compare
@RussKie Sorry. I should have kept you in touch. Not really...
The MessageBox is too width when not expanded. The MessageBox is too height (didn't found how to insert a scroll) when expanded + it looks that the font can't be customized. To reproduce it : insert lots of lines with a unicode char and select in the diff window "US-ASCII". |
016f8c1
to
5b8d2dc
Compare
5b8d2dc
to
ce3b19e
Compare
For me, the idea was to keep the "Output truncated" annotation feature you did when displaying the patch in the task dialog expander. Because, otherwise, you will indeed always have case where the text is too big to be displayed. For me the content of the patch is not so important. The most important information is that the reset failed. I can't recall one time where I had a look at the patch in this case. So the most important information is the error message you displayed in the main part of the taskdialog 👍
Strange. Is it due to the content displayed in the expand section? |
I may be able to look into this. Do you have steps to reproduce? |
Thanks if you know how to improve it. The only thing I could do to improve the window is to truncate the number of lines in the expandable part of the form. To reproduce it : insert lots of lines with a unicode char and select in the diff window "US-ASCII". Select all lines in diff window, right click and try to revert. |
Fixes #10709
Proposed changes
Test environment(s)
Screenshots
Before
The MessageBox takes the whole height of my screen.
After without "Output truncated" annotation:
After with "Output truncated" annotation:
After with TaskDialog
Indent is lost.
Merge strategy
I agree that the maintainer squash merge this PR (if the commit message is clear).
✒️ I contribute this code under The Developer Certificate of Origin.