From 7933e35fc353fcf3e94317413796d4a2589ae2fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jorem=20Ju=C3=A1rez?= Date: Mon, 29 Jun 2026 12:29:30 -0600 Subject: [PATCH] Show dish thumbnail in cart line items The cart ('Tu pedido') line showed only name + price + quantity, no image. Render the dish photo as a thumbnail (MediaThumb, with the plate-icon fallback when media is missing or fails to load). --- src/components/public/PublicMenu.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/components/public/PublicMenu.tsx b/src/components/public/PublicMenu.tsx index 3c4a945..c0c2e71 100644 --- a/src/components/public/PublicMenu.tsx +++ b/src/components/public/PublicMenu.tsx @@ -9,6 +9,7 @@ import BrandHeader from './BrandHeader'; import DishCard from './DishCard'; import ListRow from './ListRow'; import Gallery from './Gallery'; +import MediaThumb from './MediaThumb'; import AiConsultant from './AiConsultant'; import SuggestionCarousel from './SuggestionCarousel'; import SplitPanel, { type SplitSession } from './SplitPanel'; @@ -565,6 +566,11 @@ function OrderPanel({ {cart.map((l) => (
+ a.order - b.order)[0]} + alt={pickText(l.product.name, locale)} + className="h-12 w-12 shrink-0 rounded-xl" + /> {pickText(l.product.name, locale)}