From d836d531a719a427483faabcf645066a8256ff19 Mon Sep 17 00:00:00 2001 From: Julien Nahum Date: Sat, 15 Mar 2025 13:38:38 +0800 Subject: [PATCH] Refactor BarcodeInput and CameraUpload Components for Enhanced UI and Functionality - Replace SVG icon in BarcodeInput with a new Icon component for improved visual consistency. - Update CameraUpload component to enhance styling and functionality, including: - Add a barcode scanning overlay for better user experience during scanning. - Refactor video and canvas elements to improve layout and responsiveness. - Adjust button sizes and styles for better accessibility and usability. - Implement more robust camera handling logic, including improved facing mode management and error handling for mobile devices. These changes aim to enhance the user interface and overall functionality of the barcode scanning feature, ensuring a smoother experience for users. --- client/components/forms/BarcodeInput.vue | 26 +--- .../forms/components/CameraUpload.vue | 122 +++++++++++++----- 2 files changed, 97 insertions(+), 51 deletions(-) diff --git a/client/components/forms/BarcodeInput.vue b/client/components/forms/BarcodeInput.vue index e652af87..f283459e 100644 --- a/client/components/forms/BarcodeInput.vue +++ b/client/components/forms/BarcodeInput.vue @@ -61,33 +61,15 @@
diff --git a/client/components/forms/components/CameraUpload.vue b/client/components/forms/components/CameraUpload.vue index 9aa65026..349143b2 100644 --- a/client/components/forms/components/CameraUpload.vue +++ b/client/components/forms/components/CameraUpload.vue @@ -1,5 +1,5 @@