Fix library tile buttons rendering above the sticky header while scrolling #18
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/library-header-zindex"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
.libraryHeaderand the alphabet index's.letterHeadingboth copied theirz-index: 2fromtiles.css's pre-existing sticky.searchBar— which never showed this problem in practice, since a single slim input has little vertical range to actually overlap a scrolling tile mid-transition..tileOverlay(its action buttons — always-visible on a touch device, not just hover-revealed) is alsoz-index: 2. Equal z-index ties toward whichever renders later in the DOM — a tile, inside#grid, always after the header. Wrapping the old slim search bar into the much taller combined header gave a scrolling tile far more room to pass directly underneath before fully clearing it, which is what actually surfaced the tie.z-index: 3, matchingshell/Shell.css's own.mobileTopBar.Test plan
npm run typecheck(client) — cleannpm run build(client) — clean.gridof tiles (their.tileOverlayforced visible), scrolled so a tile genuinely overlapped the header's rect, then read the actual paint order withelementsFromPointat that point — with the header's z-index forced back to the old2,.tileOverlaytopped the stack exactly as reported; restored to3, the header topped it instead, with.tileOverlaythree layers down and unreachable.🤖 Generated with Claude Code