fix(mobile): constrain iOS date input so it never overflows the page#50
Merged
Conversation
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).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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/Chrome06/30/2026, and the control's intrinsic min-width could still win even withw-full min-w-0.What
max-w-full+box-borderon the date input so its border-box can never exceed the parent column.overflow-hiddenon theasideand the page container as a backstop.[&::-webkit-date-and-time-value]:text-leftto 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.