Show full dish description on public cards (no truncation)

The card description was clamped to 2 lines with an ellipsis. Removed the
line-clamp so it shows in full and the card grows to fit (the flip front face is
in normal flow, so it already drives card height; the back is the absolute
overlay). Added whitespace-pre-line to honor line breaks.

Grid uses items-start so cards of different heights render at their natural height
(rows align to the tallest) instead of being stretched with awkward gaps. List
view already shows the full description on expand — unchanged.
This commit is contained in:
Jorem Juárez committed 2026-06-16 12:50:07 -06:00
1 parent 14e2f73db9
commit c82c0f2108
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -59,7 +59,7 @@ export default function DishCard({
</span>
</div>
{description && (
<p className="line-clamp-2 text-sm text-[var(--text)]/70">{description}</p>
<p className="whitespace-pre-line text-sm text-[var(--text)]/70">{description}</p>
)}
<div className="flex flex-wrap gap-1.5">
{product.dietTags.map((tag) => (
+1 -1
View File
@@ -258,7 +258,7 @@ export default function PublicMenu({ menu, slug }: { menu: MenuSnapshot; slug: s
))}
</div>
) : (
<div className="grid grid-cols-1 gap-4 sm:grid-cols-2">
<div className="grid grid-cols-1 items-start gap-4 sm:grid-cols-2">
{s.products.map((p, i) => (
<DishCard
key={p.id}