From 0f56c8b0f4174cddb6a9213d94d1e67c57c89b4d Mon Sep 17 00:00:00 2001 From: robin Date: Thu, 18 Dec 2025 15:48:11 +0100 Subject: [PATCH] feat: add gallery upload and fix mobile header issues - Added 'Upload from Gallery' button to CameraCapture component - Implemented secondary file input without 'capture' attribute to allow gallery selection on mobile - Fixed overlapping header elements on mobile by making the header responsive - Compacted 'Dram of the Day' button on small screens - Added translations for the new gallery upload feature --- src/app/page.tsx | 4 +- src/components/CameraCapture.tsx | 87 ++++++++++++++++++++------------ src/components/DramOfTheDay.tsx | 2 +- src/i18n/de.ts | 1 + src/i18n/en.ts | 1 + src/i18n/types.ts | 1 + 6 files changed, 62 insertions(+), 34 deletions(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index e4f7583..e379467 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -129,11 +129,11 @@ export default function Home() { return (
-
+

WHISKYVAULT

-
+
+ + {!previewUrl && !isProcessing && ( + )} - +
)} {error && ( diff --git a/src/components/DramOfTheDay.tsx b/src/components/DramOfTheDay.tsx index dfbd3ba..8bdfe23 100644 --- a/src/components/DramOfTheDay.tsx +++ b/src/components/DramOfTheDay.tsx @@ -44,7 +44,7 @@ export default function DramOfTheDay({ bottles }: DramOfTheDayProps) {