fix(events): pin the sticky buy bar flush above the nav (--bottom-nav-height) #150
No reviewers
Labels
No labels
app:activities
app:chat
app:chatelet
app:events
app:forum
app:libra
app:market
app:restaurant
app:tasks
app:wallet
app:webapp
bug
enhancement
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
aiolabs/webapp!150
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/events-sticky-bar-gap"
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?
Follow-up to #149, which merged before these two commits reached the branch. Fixes the gap under the sticky buy bar seen on demo on both phone and desktop.
Cause
space-y-6column; Tailwind's child margin also offsets aposition: fixedbox, so the bar floated 24px above itsbottom.3.5rem + env(safe-area-inset-bottom)), a second guess at the nav's height.What
feat(layout): publish the bottom nav's rendered height as --bottom-nav-height—BottomNavmeasures itself (ResizeObserver) and writes the variable on<html>;index.cssdeclares the0pxdefault. Anything pinned above the nav usesbottom: var(--bottom-nav-height). The restaurant item page's add-to-cart bar (existing precedent, which carried its own gap comment) is migrated to it. Cross-cutting change, committed first on its own.fix(events): pin the sticky buy bar flush above the nav— the bar teleports to<body>(same as the shell's dialogs and toaster) and uses the variable.vue-tsc -bclean; events + restaurant tests pass. Headless measurement on the Château du Faune event: bar bottom == nav top at 390×844 and 1280×900, zero gap; show/hide behaviour unchanged.🤖 Generated with Claude Code
https://claude.ai/code/session_01ByAwHU4pRnyE58YocQvAas