From 30bc43a80503eeaeee37706765c321bd0793746c Mon Sep 17 00:00:00 2001 From: Alexandre Fauquette <45398769+alexfauquette@users.noreply.github.com> Date: Sun, 10 Mar 2024 15:57:19 +0100 Subject: [PATCH] Fix ingredients game paper cuts (#915) * show number of scans * Remove show OCR if not available * fix dark theme * support lower case * Update src/pages/ingredients/ImageAnnotation.tsx Co-authored-by: Pierre Slamich --------- Co-authored-by: Pierre Slamich --- src/pages/ingredients/ImageAnnotation.tsx | 22 ++++++++-------- src/pages/ingredients/IngeredientDisplay.tsx | 27 +++++++++++++++----- src/pages/ingredients/index.tsx | 7 ++--- src/pages/ingredients/useData.tsx | 3 +++ 4 files changed, 40 insertions(+), 19 deletions(-) diff --git a/src/pages/ingredients/ImageAnnotation.tsx b/src/pages/ingredients/ImageAnnotation.tsx index e4527ca9b..a79bcbeae 100644 --- a/src/pages/ingredients/ImageAnnotation.tsx +++ b/src/pages/ingredients/ImageAnnotation.tsx @@ -92,7 +92,7 @@ function Annotation({ ), )} {showOCR && ( -

+

{splitText(data).map(({ isIngredient, text }, i) => ( {isIngredient ? ( @@ -108,15 +108,16 @@ function Annotation({

)} - + {data && ( + + )} ); } @@ -142,6 +143,7 @@ export default function ImageAnnotation({ />