Improve search/replace dialog sizing under various locales #4098
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem 1
In Czech for instance, the "In Session" button is translated as "Ve všech otevřených souborech" (meaning "in all open files"). Since the sizing of buttons is homogenous, all of them pick this size (including the "close window" checkbox on the left) and the result is a ridiculously wide search dialog that is impossible to shrink for users:
I dropped the homogenous spacing but to simulate it, I set the minimum size of all the buttons to 130px so buttons containing shorter labels (which are most of them in practice) still have the same size. The result looks much more reasonable:
Problem 2
In German, for instance, a translation in the first column of checkboxes is much wider than in the second column but again, the two columns are sized homogeneously so there is a lot of wasted space in the second column.
The second patch drops the homogenous spacing so the second column can be shorter:
Problem 3
Finally, I noticed that the vertical distance between the "Find All" expander and the "Close dialog" checkbox below it is too low and the text looks a bit crowded. I added a 6px padding there. (Check the screenshots above to see the before/after change.)