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);