Skip to content

Commit 3144137

Browse files
authored
fix(view-browser): elevate header so Recent runs dropdown overlays main content (#105)
The Recent-runs dropdown menu was being clipped from below by the highlighted scan-path `<code>` block in `<main>`. The dropdown's `z-index: 10` only competed inside its own stacking context — the parent `.recent-scans-menu` was `position: relative` but `<header>` had no positioning, so source order made `<main>` paint above the header by default. Promote `<header>` to `position: relative; z-index: 100` so it owns a stacking context above `<main>`. Bump `.recent-scans-list` z-index from 10 → 1000 inside that context (defensive overkill for any future header-internal layering needs). Affects only the browser interface (`argus view --interface=browser`). Templates unchanged. All 147 browser-viewer tests pass. Co-authored-by: eFAILution <eFAILution@users.noreply.github.com>
1 parent fdd43e6 commit 3144137

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

argus/viewers/browser/static/argus.css

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,12 @@ header {
168168
margin-bottom: 1.5rem;
169169
flex-wrap: wrap; gap: 0.5rem 1rem;
170170
padding-top: 1.25rem; padding-bottom: 1.25rem;
171+
/* Promote the header into its own stacking context above <main> so
172+
* absolutely-positioned descendants (the Recent-runs dropdown) can
173+
* overlay the highlighted scan-path block and any other downstream
174+
* content. Without this, source order makes <main> paint on top. */
175+
position: relative;
176+
z-index: 100;
171177
}
172178
header .brand {
173179
display: flex; align-items: center; gap: 0.6rem;
@@ -265,7 +271,10 @@ header nav a[aria-current="page"] {
265271
margin: 0; list-style: none;
266272
min-width: 20rem;
267273
max-height: 24rem; overflow-y: auto;
268-
z-index: 10;
274+
/* High z-index inside the header's stacking context (header itself
275+
* is z-index: 100). Combined, this guarantees the open dropdown
276+
* paints above any <main> content beneath. */
277+
z-index: 1000;
269278
box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
270279
}
271280
.recent-scans-list li { margin: 0; }

0 commit comments

Comments
 (0)