Repository navigation
Fix compressed window on first launch; enforce sidebar and main-area minimum widths (1.0.1) - #1
Merged
Merged
Conversation
…minimum widths (1.0.1) A fresh install had no saved frame and no default size, so the window opened at its 980 pt minimum. Discover (the first screen) needs ~1021 pt and chat with the inspector ~1060, so both were squeezed. Now: defaultSize 1280x820; sidebar column 240-340; detail column min 820 (chat 560 + inspector 260, which also fits Discover's 340 + 400 panes); window min is their sum. Discover badges fall back to two rows instead of wrapping mid-word. MLXRUNNER_SNAPSHOT_SIZE renders snapshots at a given (clamped) size. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
🚀 Deploying Preview to Cloudflare 🚀Preview Deployments by commit
|
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
On a fresh install the window opened at its 980 pt minimum (no default size and no saved frame). The first screen, Discover, needs about 1021 pt (sidebar 220 + panes 380 + 420), and chat with the settings inspector needs about 1060. Both appeared compressed from left to right. The detail column had no minimum of its own, so inner minimums never reached the window's minimum.
Fix
.defaultSize(width: 1280, height: 820)for the first launch; after that, the saved frame wins.WindowLayoutconstants: sidebar 240–340, detail min 820 (chat 560 + inspector 260), window min = their sum (1060), all applied as split-view column widths.ViewThatFits).MLXRUNNER_SNAPSHOT_SIZE=WxHrenders snapshots at that size, clamped to the window minimum.Verification
contentMinSize1060×692.swift test: 94 tests passed.Not covered: dragging the sidebar to its 340 max at the minimum window size (I couldn't drag in headless mode).
🤖 Generated with Claude Code