Skip to content

Discover: proportional model list width (1.0.2) - #2

Merged
jkyberneees merged 1 commit into
mainfrom
fix/discover-list-width
Oct 31, 2026
Merged

jkyberneees merged 1 commit into
mainfrom
fix/discover-list-width

Conversation

@jkyberneees

Copy link
Copy Markdown
Contributor

Problem

In large windows the Discover model list stayed at its minimum, about 380 pt, so model names and authors were truncated. Meanwhile the detail pane, whose content is capped at 760 pt, took all the extra width. HSplitView (NSSplitView) ignores idealWidth and keeps whatever divider position it starts with, so the split depended on how the window reached its size.

Fix

  • ResizableSplit: the list takes 40% of the Discover area, with minimums of 380 for the list and 400 for the detail pane. The proportion is kept on resize.
  • The divider is draggable (resize cursor). The position is stored in @AppStorage and validated on read (finite, between 0 and 1).
  • "Runnable only" and the model count no longer wrap in narrow windows.
  • Version 1.0.2 and a CHANGELOG entry.

Verification

Snapshots at 2000×1160 (list about 700 pt, matching the requested mockup), 1280×820 and 1060×692 (list at its 380 minimum, names readable, header on one line). swift test: 94 tests passed.

🤖 Generated with Claude Code

…trary start (1.0.2)

HSplitView ignores idealWidth and keeps whatever divider position it starts with, so in large
windows the model list stayed at its minimum (names truncated) while the detail pane, whose
content is capped at 760 pt, took all extra space. ResizableSplit gives the list 40% of the
area (min 380, detail min 400), keeps the proportion on resize, and remembers the dragged
position (validated from user defaults). Header labels no longer wrap at narrow widths.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

🚀 Deploying Preview to Cloudflare 🚀

Preview Deployments by commit

Status Deployment URL Commit Updated (UTC) See this deployment's details
  • Build: Failed ❌

View logs ↗
b47dbfd 2026-10-31T15:06:52.598Z View logs ↗

@jkyberneees
jkyberneees merged commit 0ef3d18 into main Oct 31, 2026
4 of 5 checks passed
@jkyberneees
jkyberneees deleted the fix/discover-list-width branch October 31, 2026 15:11
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