Repository navigation
Mac: stop the main window shrinking past its content - #2
Open
Thomaspeel6 wants to merge 1 commit into
Open
Thomaspeel6 wants to merge 1 commit into
Thomaspeel6 wants to merge 1 commit into
Conversation
The window is locked to the screen's aspect ratio and the content declares an 880x560 minimum. SwiftUI enforces the width, but the height just follows the ratio: at 880 wide on a 16:9 display the window is about 480 tall, so the composer and sidebar footer are clipped. Raise the minimum width until the matching height fits the layout.
Thomaspeel6
force-pushed
the
fix/window-min-size
branch
from
November 13, 2026 14:44
983fff2 to
578dc45
Compare
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.
What: On a 16:9 display the main window can be dragged small enough that the composer toolbar and the sidebar footer are cut off.
Why: The window is locked to the screen's aspect ratio, and the content declares an 880 × 560 minimum. The width stops at 880, but the height just follows the ratio, which on a 16:9 screen gives about 480, less than the layout needs.
Fix: Raise the minimum width so the matching height always fits the layout. One file,
JoeBro/JoeBroApp.swift. The aspect-ratio lock and the 880 × 560 content minimum are unchanged.Tested: Built from
main(1.5.0) in Xcode 26.5 on macOS 26.2. On a 1920 × 1080 external display, asking the window to resize to 500 × 300 used to settle at 880 wide; it now stops at 1083 × 592 (560 of content plus the title bar). That check was done by resizing the window programmatically rather than by dragging.