From e8df17bb5ad49f3dd049d7f7e231c3f0a9359f35 Mon Sep 17 00:00:00 2001 From: thePR0M3TH3AN <53631862+PR0M3TH3AN@users.noreply.github.com> Date: Tue, 2 Jun 2026 15:04:08 -0400 Subject: [PATCH] pin Back-to-Deck bar to the viewport MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #deckEditBar used position: absolute, which made it a child of the scrolling #previewShell — panning or zooming the canvas dragged the bar off-screen. Switching to position: fixed pins it to the viewport so it stays put at top-center regardless of canvas pan or zoom. --- src/index.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/index.html b/src/index.html index f12f0be..7ba7517 100644 --- a/src/index.html +++ b/src/index.html @@ -769,7 +769,12 @@ } .deckSlideActions button:hover { background: #f1f5f9; } #deckEditBar { - position: absolute; top: 10px; left: 50%; transform: translateX(-50%); + /* Pinned to the viewport so panning / zooming the canvas + doesn't drag the bar along. The bar still visually sits over + the canvas area because the sidebar is on the left — top:10px + + left:50% lands roughly centred over the canvas at common + widths. */ + position: fixed; top: 10px; left: 50%; transform: translateX(-50%); z-index: 60; align-items: center; gap: 10px; background: var(--panel, #fff); border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px 5px 8px;