feat(frontend): close bottom panel when entering annotate mode

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Marcel
2026-03-24 23:21:38 +01:00
parent c19f7b3b1a
commit 142f296255

View File

@@ -66,6 +66,11 @@ $effect(() => {
}
});
// Close the panel when entering annotate mode so the PDF is fully visible.
$effect(() => {
if (annotateMode) panelOpen = false;
});
// ── Bottom panel state ────────────────────────────────────────────────────────
const LS_KEY_OPEN = 'doc-panel-open';