8000 Mac: stop the main window shrinking past its content by Thomaspeel6 · Pull Request #2 · joexk1/JoeBro · GitHub
[go: up one dir, main page]

Skip to content

Mac: stop the main window shrinking past its content - #2

Open
Thomaspeel6 wants to merge 1 commit into
joexk1:mainfrom
Thomaspeel6:fix/window-min-size
Open

Thomaspeel6 wants to merge 1 commit into
joexk1:mainfrom
Thomaspeel6:fix/window-min-size

Conversation

@Thomaspeel6
@Thomaspeel6 Thomaspeel6 commented Nov 13, 2026 •
Copy link
Copy Markdown

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.

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0