From 4815dc0e287c36834fbec77a7f2991bf4efc92e0 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Fri, 21 Aug 2026 09:29:22 +0000 Subject: [PATCH] Restore meals grid cell width on wide viewports The iOS pan fix wrapped the weeks in min-w-[37rem] under HScroll's w-max port, so desktop cells collapsed to that floor. Size the pan box with max(100%, 37rem) and let the grid fill it. Co-authored-by: Injoon Oh --- apps/web/src/routes/meals/+page.svelte | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/apps/web/src/routes/meals/+page.svelte b/apps/web/src/routes/meals/+page.svelte index 46a49e4..b33670c 100644 --- a/apps/web/src/routes/meals/+page.svelte +++ b/apps/web/src/routes/meals/+page.svelte @@ -125,14 +125,16 @@ function openMealDrawer(day: MealDay) { {/if} -
+ it sized to the port and left the row with nothing to scroll. + `max(100%, 37rem)` — not bare min-w — so wide viewports still fill + the port the way they did before the iOS pan fix. --> +
{#each [ { days: mealsQuery.data.thisWeek.days, class: "" }, { days: mealsQuery.data.nextWeek.days, class: "mt-3" } ] as week} -
+
{#each week.days as day (day.date)} {@const meal = mealFor(day, selectedMealType)} {@const hasMeal = !!meal}