From a392e85f4308a56945ef43fbe1833ae389853ecd Mon Sep 17 00:00:00 2001 From: Marcel Date: Tue, 24 Mar 2026 23:03:37 +0100 Subject: [PATCH] fix(frontend): move annotation toggle into PDF toolbar and add text label Button was rendered outside the controls bar (below the toolbar). Moved it inside so it stays in the same row as zoom and page controls. Added a text label next to the eye icon so the action is self-descriptive. Co-Authored-By: Claude Sonnet 4.6 --- frontend/src/lib/components/PdfViewer.svelte | 69 +++++++++----------- 1 file changed, 30 insertions(+), 39 deletions(-) diff --git a/frontend/src/lib/components/PdfViewer.svelte b/frontend/src/lib/components/PdfViewer.svelte index 6c3deb33..323c3cc6 100644 --- a/frontend/src/lib/components/PdfViewer.svelte +++ b/frontend/src/lib/components/PdfViewer.svelte @@ -403,54 +403,45 @@ function zoomOut() { title="Farbe wählen" /> {/if} - - - - {#if annotations.length > 0} - - {/if} + {showAnnotations ? m.pdf_annotations_hide() : m.pdf_annotations_show()} + + {/if} +