Skip to content

fix: GenreTreeView uses h-full instead of h-screen - #26

Merged
Andreas-Garcia merged 1 commit into
mainfrom
fix/genre-tree-view-h-screen
Aug 14, 2026
Merged

fix: GenreTreeView uses h-full instead of h-screen#26
Andreas-Garcia merged 1 commit into
mainfrom
fix/genre-tree-view-h-screen

Conversation

@Andreas-Garcia

Copy link
Copy Markdown
Member

Summary

  • GenreTreeView's root sizes with h-screen (100vh), which is only correct if it's the sole content on the page. In every real consumer it isn't (nav header, player bar, popups share the viewport) — so the block extends past the visible viewport and GenreTreeWheel's bottom-anchored zoom in/out controls end up below the fold, present in the DOM but invisible without scrolling.
  • Switched to h-full so it fills its parent instead. apps/playground now gives it a bounded height context (flex flex-col + min-h-0), matching the pattern grow/hear's Page component already uses.
  • Confirmed live: before the fix, .gtv-zoom-controls rendered at top: 966 in a 900px viewport (off-screen); after, at top: 814 (fully visible, no scroll).

Test plan

  • pnpm --filter @behindthemusictree/app-kit lint/build/test
  • pnpm --filter app-kit-playground lint/build
  • Playwright screenshot against the running playground dev server confirms zoom controls now sit within the viewport in wheel mode

🤖 Generated with Claude Code

h-screen (100vh) assumed GenreTreeView was the only content on the
page, which is never true for a real consumer (nav header, player
bar, popups). Whenever it rendered below other content, its h-screen
block extended past the actual visible viewport, pushing
GenreTreeWheel's bottom-anchored zoom in/out controls below the fold.

h-full makes it fill its parent instead; apps/playground now gives it
a bounded height context, matching the flex/min-h-0 pattern grow and
hear already use via their Page component.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@vercel

vercel Bot commented Aug 14, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
app-kit-playground Ready Ready Preview Aug 14, 2026 5:35pm

@Andreas-Garcia
Andreas-Garcia merged commit c0bd45d into main Aug 14, 2026
4 checks passed
@Andreas-Garcia
Andreas-Garcia deleted the fix/genre-tree-view-h-screen branch August 14, 2026 17:39
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