From bfa8b9c147d00eb723363004c21a576f3bbede10 Mon Sep 17 00:00:00 2001 From: Marcel Date: Sun, 26 Apr 2026 21:37:17 +0200 Subject: [PATCH] fix(viewer): move delete button inside annotation bounds to prevent edge clipping Repositioning from top:-8px/right:-8px to top:4px/right:4px ensures the 44px touch target stays fully within the annotation shape. Annotations drawn near the top or right edge of the PDF page no longer risk the button being obscured or inaccessible. Co-Authored-By: Claude Sonnet 4.6 --- frontend/src/lib/components/AnnotationShape.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/lib/components/AnnotationShape.svelte b/frontend/src/lib/components/AnnotationShape.svelte index 2dbc1f3d..31be34f4 100644 --- a/frontend/src/lib/components/AnnotationShape.svelte +++ b/frontend/src/lib/components/AnnotationShape.svelte @@ -130,8 +130,8 @@ let shapeStyle = $derived( }} style=" position: absolute; - top: -8px; - right: -8px; + top: 4px; + right: 4px; min-width: 44px; min-height: 44px; display: flex;