feat(ui): recipe thumbnail su Select Recipe + fit (object-contain) su Gestione Ricette

- /measure/select: aggiunta miniatura 64×64 accanto al nome ricetta
  (object-contain per mantenere l'immagine intera, non croppata).
  Lo schema backend RecipeSummary esponeva solo id/code/name/active:
  aggiunti image_path e description così la card può rendere thumb
  e sottotitolo.
- /maker/recipes: la miniatura passa da object-cover (crop) a
  object-contain (fit), per visualizzare l'intera immagine della
  ricetta senza tagli.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-05-19 09:24:36 +02:00
parent f1c7a28296
commit 182aa9fa9a
3 changed files with 28 additions and 11 deletions
+2
View File
@@ -51,6 +51,8 @@ class RecipeSummary(BaseModel):
code: str
name: str
active: bool
image_path: Optional[str] = None
description: Optional[str] = None
class StationWithRecipesResponse(StationResponse):