Fix flash toast clipped behind the sticky admin header #134
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/flash-toast-header-clip"
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?
What does this PR do?
Fixes the confirmation toast rendering clipped behind the sticky admin header.
The toast used
position: fixed; top: 1rem, but the admin header isposition: sticky; top: 0; z-index: 100and roughly 5rem tall. The toast sat inside the header's vertical band with a lowerz-index, so the header painted over it and hid everything above its bottom edge. On/decisions, an approve produces a two-sentence message (Decision approved. Ban action <id> queued for <ip>.), so only the trailing line (the IP) showed below the nav, which looked like a stray fragment.The fix drops the toast below the header:
top: 5.25remon wide screens (matching thehtml scroll-padding-topthat already reserves that band for fragment jumps) and6.75remunder 900px, where the header collapses to one row and section-index pages pin a sticky chip row just beneath it. Positioning only; the out-of-flow behaviour, fade timer, and dismissal are unchanged.How was this tested?
dotnet build- not required (CSS-only static asset; no C# changed)dotnet test- not requiredscroll-padding-top5rem desktop / 6.5rem mobile,.admin-headerz-index 100)Checklist
The confirmation toast used position: fixed; top: 1rem while the admin header is position: sticky; top: 0; z-index: 100 and about 5rem tall. Because the toast sits 1rem from the top with a lower z-index, the header rendered over it and clipped everything above its bottom edge. On the decisions page an approve returns a two-sentence message ("Decision approved. Ban action <id> queued for <ip>."), so only the trailing line showed below the nav. Move the toast below the header: top: 5.25rem on wide screens (matching the html scroll-padding-top that already reserves this band for fragment jumps) and 6.75rem under 900px, where the header collapses to one row and section-index pages pin a sticky chip row just beneath it. Positioning only; no change to the out-of-flow behaviour, fade timer, or dismissal. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>