Skip to content

fix(mobile): constrain iOS date input so it never overflows the page#50

Merged
bryankennedy merged 1 commit into
mainfrom
fix/issue-date-overflow-mobile
Jul 4, 2026
Merged

fix(mobile): constrain iOS date input so it never overflows the page#50
bryankennedy merged 1 commit into
mainfrom
fix/issue-date-overflow-mobile

Conversation

@exe-dev-github-integration

Copy link
Copy Markdown
Contributor

Why

Follow-up to #49. On iOS Safari the native date control still pushed the issue column past the viewport on a phone. Safari renders a localized value label (Jun 30, 2026) that is wider than the Android/Chrome 06/30/2026, and the control's intrinsic min-width could still win even with w-full min-w-0.

What

  • max-w-full + box-border on the date input so its border-box can never exceed the parent column.
  • overflow-hidden on the aside and the page container as a backstop.
  • [&::-webkit-date-and-time-value]:text-left to left-align the value — Safari centers it by default, wasting horizontal space on both sides.

Testing

Verified with a WebKit (Playwright) run at a 390px iPhone viewport: no page overflow, date input constrained to the aside width.

The prior w-full + min-w-0 pin was not enough on iOS Safari: its native
date control renders a localized label ("Jun 30, 2026") wider than the
Android/Chrome "06/30/2026", and its intrinsic min-width could still push
the field — and the whole issue column — past the viewport on a phone.

Add max-w-full + box-border so the border-box can never exceed the parent,
wrap the aside and page container in overflow-hidden as a backstop, and
left-align the value via [&::-webkit-date-and-time-value]:text-left (Safari
centers it by default, wasting horizontal space on both sides).
@bryankennedy bryankennedy merged commit e9f2fc7 into main Jul 4, 2026
2 checks passed
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.

1 participant