mirror of
https://github.com/rommapp/romm.git
synced 2026-12-06 15:54:45 +01:00
Reworks the sticky-on-scroll behaviour so the gallery toolbar reads as a single element that scrolls naturally with the hero and steps OUT of the scroll once it reaches the top — matching AppNav, where content never reaches the bar's area. - The toolbar item inside the virtualizer renders an empty placeholder (its 64px of vertical space is reserved in the offset table). - The actual GalleryToolbar lives once, as an absolute-positioned overlay on the section. Its `top` is computed from `scrollTop`: scrollTop < toolbarOffset → top = toolbarOffset - scrollTop (tracks the natural scroll); scrollTop ≥ toolbarOffset → top = 0 (pinned). - While pinned, a `clip-path: inset(toolbar-h 0 0 0)` on the virtualizer hides anything painted in the top band so card rows don't bleed through behind the toolbar. The toolbar's backdrop-filter then only sees the page's BackgroundArt — same visual language as AppNav, semi-transparent over the page background, no card content showing through. - A `--stuck` modifier adds the bottom border + blur only when pinned, so the in-flow state (transparent, sitting between hero and rows) reads cleanly without chrome. Replaces the previous dual-toolbar slide-in approach (one inline, one fixed sliding from above) which the user found jumpy. There is now exactly one toolbar element from the user's POV. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>