Skip to content

fix(ui): a banner below the top bar no longer makes the page scroll - #175

Merged
7schmiede merged 1 commit into
mainfrom
fix/banner-height
Oct 21, 2026
Merged

7schmiede merged 1 commit into
mainfrom
fix/banner-height

Conversation

@7schmiede

Copy link
Copy Markdown
Member

Problem

The guest-lanes banner from #167, and the "hub not reachable" banner too, made the page as much taller as the banner itself:

  • The sidebar is sticky with height 100vh − top bar, and the banner sits between the top bar and the content.
  • So the page always scrolled, and the pool entry at the bottom of the sidebar could only be reached by scrolling.

Change

  • The banners are in one container that stays below the top bar (sticky).
  • App.vue measures its height with a ResizeObserver and writes it to --banners-h; without a banner it is 0px.
  • The sidebar and the overview's sticky list subtract it from their height.

Tested

In mock mode with headless Edge, 1280×860:

  • With the banner: the pool entry ends at y = 849 (visible without scrolling), and stays there while scrolling. The banner sticks right below the top bar (y = 56).
  • After hiding the banner: --banners-h = 0px.
  • npm run typecheck, npm test.

🤖 Generated with Claude Code

The sidebar is sticky and as high as the window less the top bar; a banner
between them (lanes of other members, the hub not reachable) made the page
that much longer, so the bottom of the sidebar (the pool entry) was only
reached by scrolling. The banners now stay below the top bar, and their
measured height (`--banners-h`) is taken off the sidebar and the overview's
sticky list; without a banner it is 0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@7schmiede
7schmiede merged commit dba91d6 into main Oct 21, 2026
@7schmiede 7schmiede mentioned this pull request Oct 21, 2026
@7schmiede
7schmiede deleted the fix/banner-height branch October 23, 2026 20:53
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