mirror of
https://github.com/bitbaum/evig.git
synced 2026-12-06 03:30:05 +01:00
The admin/dashboard mobile bottom nav (fixed, z-50, ~57px) was covering bottom-anchored UI: the Hirn AI FAB sat half-hidden (bottom-6 z-40), the timecard sticky Save/Einreichen bar stuck at bottom-0 BEHIND the nav, and two erfassung bars each hand-rolled their own 3.5rem+safe-area offset. One SSOT instead of per-element nav math (globals.css): - `.has-bottom-nav` on the admin + dashboard shells defines --bottom-nav-clearance (57px + safe-area below lg, 0px from lg and on navless pages) - every fixed/sticky bottom element now offsets with the var: Hirn FAB, timecard sticky bar + bulk bar, ErfassungSubmitBar, BulkActionBar, MessageButton, SuggestionButton, HirnPublicFab, admin main padding - CLAUDE.md documents the rule + an audit grep so new bottom-anchored elements can't reintroduce the class Verified at 390px: FAB fully above the nav, sticky bar lands exactly on the nav's top edge, no FAB/submit-button overlap, no horizontal scroll. Gotcha encoded in CLAUDE.md: Tailwind v4 scans ALL files for class candidates — an invalid bracket-class inside a markdown example breaks the CSS build. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>