Skip to content

Open the menu at the runs list's full height - #6

Merged
pch merged 1 commit into
mainfrom
t3/menu-height
Nov 5, 2026
Merged

pch merged 1 commit into
mainfrom
t3/menu-height

Conversation

@pch

@pch pch commented Nov 5, 2026

Copy link
Copy Markdown
Owner

The menu opened short on first open (about two and a half runs visible) and only grew to its full height after opening Settings.

The menu window sizes itself to its content's ideal size. The runs ScrollView only had .frame(maxHeight: 400), so its ideal height didn't follow its rows. Settings has minHeight: 520, which made the window taller, and back on the runs list the ScrollView filled the space up to 400.

The list now measures its content with onGeometryChange and uses min(contentHeight, 400) as its height. A short list also no longer bounces (scrollBounceBehavior(.basedOnSize)).

🤖 Generated with Claude Code

The menu window takes its content's ideal size, and the runs ScrollView
only had a max height, so its ideal height didn't follow the rows. The
menu opened short and only grew after Settings (min height 520) had made
the window taller. The list now measures its rows and uses that height,
capped at 400.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@pch
pch merged commit 0f57260 into main Nov 5, 2026
1 check passed
@pch
pch deleted the t3/menu-height branch November 5, 2026 08:29
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