From 1abf2417050fba13afd80c39ec573a4eda74b977 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Wed, 9 Sep 2026 05:41:12 +0300 Subject: [PATCH] Confirm pops overlay the page instead of scrolling it MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Opening a Rotate/Revoke confirm grew the page: the pop was absolutely anchored under its button, inside .admin-table-wrap — a scroll container since it takes the tables' sideways scroll, and a non-visible x-axis forces the y-axis to auto, so the pop extended that scroll area (the long page thumb) instead of overlaying the screen. Port iz's delete-confirm model: the open pop is position:fixed and viewport-centered, which escapes every overflow ancestor, reads as the page's one dialog, and is row-agnostic — the first row's pop and the last row's pop land identically at any width. The im pop keeps its own compact box and flat shadow. Verified in a browser at 900px and 1400px, first and last rows: documentElement scrollWidth == clientWidth and scrollHeight == clientHeight while the pop is open, pop fully inside the viewport, Revoke unobscured. --- style/main.scss | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/style/main.scss b/style/main.scss index cd29d0b..659231c 100644 --- a/style/main.scss +++ b/style/main.scss @@ -1195,15 +1195,24 @@ body:has(.log-list) { } .admin-confirm-pop { - position: absolute; - right: 0; - top: calc(100% + 6px); + // Viewport-fixed and centered, iz's delete-confirm model: position:fixed + // escapes every overflow ancestor, and the table wrap is a scroll + // container (it takes the tables' sideways scroll) — an absolutely + // anchored pop inside it would grow that scroll area instead of + // overlaying the page. Centered also reads as the page's one dialog and + // is row-agnostic: the first row's pop and the last row's pop land the + // same, at any width. + position: fixed; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); z-index: 30; width: 240px; padding: 12px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius); + box-shadow: var(--shadow-2); display: flex; flex-direction: column; gap: 8px;