From 96ffc71ca107c526c5057abb3cbff7ab233f0146 Mon Sep 17 00:00:00 2001 From: Daniel Bedeleanu Date: Sat, 18 Apr 2026 14:13:49 +0000 Subject: [PATCH] refactor: make scanner viewport responsive with fluid sizing - Replace fixed w-[85%] h-[85%] with responsive padding (p-4 sm:p-6) - Use absolute inset (inset-4 sm:inset-6) for adaptive spacing - Inner scanning frame now w-full h-full to adapt to viewport - Works seamlessly across 320px mobile to 1024px+ desktop --- frontend/components/Scanner.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/components/Scanner.tsx b/frontend/components/Scanner.tsx index 93d6e204..4c1512a8 100644 --- a/frontend/components/Scanner.tsx +++ b/frontend/components/Scanner.tsx @@ -216,9 +216,9 @@ export default function Scanner({ onScanSuccess, onOCRMatch, paused }: ScannerPr return (
{/* Video Viewport Area */} -
-
-
+
+
+