fix(gui): open the About dialog wide enough for its content#99
Merged
Conversation
The dialog opened at a fixed 640px, but the width its content needs tracks the app font size and the active language: at larger text sizes (and even at the default 12pt, where the content minimum is 626px but the fixed size left only a 602px viewport) the widest rows overflowed and the scroll area showed a horizontal scrollbar over a short static page. Derive the opening width from the content's minimum plus the scroll-area chrome, clamped to the available screen, so the dialog always opens showing its full width. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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.
Problem
The About popup could open too narrow and show a horizontal scrollbar. Its opening width was fixed at 640px, but the width the content needs tracks the app font size and the active language. Reproduced offscreen: even at the default 12pt the content minimum is 626px while the fixed size leaves a 602px viewport (scrollbar already visible); at 16pt the content needs 765px and at 20pt 933px.
Fix
Derive the opening width from the scroll content's minimum width plus the scroll-area chrome (vertical scrollbar, frame, layout margins), clamped to the available screen, keeping 640x720 as the floor. On a normal desktop the dialog now opens with no horizontal scrollbar at any text-size setting; on a genuinely too-small screen it clamps to the screen and scrolls, which is the best available behavior.
The changelog entry rides in the still-unpublished 26.07.01 section so the fix ships with today's release (rc.2 to follow).
Verification
🤖 Generated with Claude Code