From ecf700eadf6822adb34187c9c7a9c58d0456052d Mon Sep 17 00:00:00 2001 From: Adriano Date: Fri, 20 Feb 2026 19:10:59 +0100 Subject: [PATCH] feat: improve recipe preview image UI with replace/remove buttons Replace drop-zone with action buttons (Sostituisci/Rimuovi) when image exists, matching the task editor pattern. Add upload overlay with spinner on the image during file upload. Co-Authored-By: Claude Opus 4.6 --- client/templates/maker/recipe_editor.html | 142 +++++++++++++--------- 1 file changed, 85 insertions(+), 57 deletions(-) diff --git a/client/templates/maker/recipe_editor.html b/client/templates/maker/recipe_editor.html index ac0fc8a..29993e5 100644 --- a/client/templates/maker/recipe_editor.html +++ b/client/templates/maker/recipe_editor.html @@ -258,69 +258,97 @@
-
- - - -
- - -
- - - - -
- - - - - {{ _('Caricamento in corso...') }} + - -
-
- - + +
+ + + + +
+ + + + {{ _('Caricamento in corso...') }}
-
- - {{ _('Carica Immagine o PDF') }} - - - {{ _('Sostituisci Immagine') }} - -

- {{ _('Trascina qui oppure clicca. Formati: PNG, JPG, WebP, PDF (max 50MB)') }} -

-

- {{ _('Usata come thumbnail nella lista ricette') }} -

+ + +
+
+ + + +
+
+ + {{ _('Carica Immagine') }} + +

+ {{ _('Trascina qui oppure clicca. Formati: PNG, JPG, WebP, PDF (max 50MB)') }} +

+

+ {{ _('Usata come thumbnail nella lista ricette') }} +

+
-
+ +