Skip to content

Restore meals grid cell width on wide viewports - #53

Merged
injoon5 merged 1 commit into
mainfrom
cursor/meals-grid-cell-width-842f
Aug 21, 2026
Merged

injoon5 merged 1 commit into
mainfrom
cursor/meals-grid-cell-width-842f

Conversation

@injoon5

@injoon5 injoon5 commented Aug 21, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • PR Fix meals horizontal scroll on iOS Safari #52 fixed iOS horizontal pan by wrapping the meals weeks in min-w-[37rem] under HScroll’s new w-max inner. That pinned the week to 37rem on desktop, so day cells got narrower than before.
  • Size the pan box with w-[max(100%,37rem)] and let the grid w-full fill it — mobile still scrolls at 37rem, wide viewports get the old cell width back.

Test plan

  • /meals on a wide desktop: day columns fill the content width again (not stuck at ~37rem total)
  • Phone / narrow viewport: row still pans horizontally; swipe starting on a day cell works on iOS Safari
  • Meal type toggle (중식/석식) still animates row height

CI

Open in Web Open in Cursor 

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 <injoon5@icloud.com>
@vercel

vercel Bot commented Aug 21, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
class-info Error Error Aug 21, 2026 9:29am

@injoon5
injoon5 marked this pull request as ready for review August 21, 2026 09:38
@injoon5
injoon5 merged commit 1e0d983 into main Aug 21, 2026
2 of 3 checks passed

This branch had an error being deployed

1 failed deployment
Preview — 4815dc0e Deployed Aug 21, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants