From 9ad2bc150a2ef825171fedb7fdf198f12daa2a9a Mon Sep 17 00:00:00 2001 From: Alex-Gilbert Date: Sat, 21 Feb 2026 16:19:00 -0600 Subject: [PATCH] =?UTF-8?q?fix:=20mobile=20polish=20=E2=80=94=20tap-to-des?= =?UTF-8?q?elect=20and=20toast=20positioning?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.6 --- unredact/static/main.js | 5 +++++ unredact/static/style.css | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/unredact/static/main.js b/unredact/static/main.js index b089a7c..8565ab4 100644 --- a/unredact/static/main.js +++ b/unredact/static/main.js @@ -514,6 +514,11 @@ canvas.addEventListener("mousedown", (e) => { if (hit) { e.stopPropagation(); activateRedaction(hit.id); + } else if (isMobile() && state.activeRedaction) { + state.activeRedaction = null; + closePopover(); + renderRedactionList(); + renderCanvas(); } }); diff --git a/unredact/static/style.css b/unredact/static/style.css index ff5fc7d..f7fd0c2 100644 --- a/unredact/static/style.css +++ b/unredact/static/style.css @@ -956,6 +956,11 @@ main { /* Delete button: always visible on touch (no hover) */ .redaction-delete { opacity: 1; } + /* Toast: position above sheet */ + #toast-container { + bottom: calc(var(--sheet-height, 60px) + 1rem); + } + /* Viewer section needs bottom margin for sheet peek height */ #viewer-section { padding-bottom: var(--sheet-height, 60px);