fix(web): lift app-shell topbar above main so the profile menu is usable (BUNYIP-408) #398
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/BUNYIP-408-profile-menu-stacking"
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?
Problem
The avatar profile menu (added in #397) is one shared component (
profile_menu), but it behaved differently per shell:Root cause
Stacking context, not divergent markup. The public
headercarriessticky top-0 z-50, so its whole subtree - including the dropdown that overflows below the bar - paints above the page.app_topbar(the dashboard/admin top bar) had no z-index, so the scrolling<main>content, which comes later in the DOM, painted over the overflowing dropdown. The page cards visually clipped the panel and intercepted the hover + click events destined for the menu rows.Fix
Give
app_topbar's<header>relative z-40: a stacking context above thez-automain content and below thez-50toast layer. This single change restores the panel, the row hover highlight, and the clicks across both app shells. No change to the sharedprofile_menumarkup, so the public header is unaffected.Verification
just check-containergreen (fmt + clippy-D warnings+ all test binaries).z-50, fixed) still render above the menu.🤖 Generated with Claude Code