Repository navigation
fix(settings): cap the settings dialog at its side-by-side layout size - #2047
Merged
Merged
Conversation
The dialog grew with the window up to 1400x1024, so on a 1080p screen it covered nearly the whole window with empty margins. Cap the width at the content reflow breakpoint and the height at 800 px; smaller windows still shrink it as before. Refs lgse#2046
This was referenced Nov 4, 2026
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
The Settings panel took its size from the window, up to 1400×1024, so in a maximized or tiled window on a 1080p screen it covered almost everything. On a 1080p screen, the panel was about 1400×1000, and the space beyond the content column was empty margin.
The panel now stops growing once the side-by-side layout fits. Its width is capped at the content reflow breakpoint (
COMPACT_CONTENT_BREAKPOINT, 1250 logical px), and its height is capped at 800 px. Deriving the width from the breakpoint keeps the desktop layout in use at the cap, and the two values cannot drift apart. Windows smaller than the cap still shrink the panel exactly as before, and the reflow breakpoints are unchanged.Capping it lower, around 1000 px as the issue suggested, would leave the panel in the stacked layout at every window size. Lowering the breakpoint to go with it squeezes the inline controls, for example the Metric/Imperial switch breaks mid-word at about 1100 px.
Visual evidence
Captured in the private QA Xvfb (1440×900 screen, maximized window). The images are hosted in a gist because
ghcannot upload PR attachments.Default 1200×760 window, unchanged from before (the panel was already smaller than the cap):
How to test
Expected result: In step 2 the panel is 1250×800 and centered, with the file browser visible around it, and the rows keep their controls inline. In step 3 the panel shrinks with the window, as before.
Related issue
Closes #2046