Phone: the settings screen is wider than the screen #246

Closed
opened 2026-10-21 20:21:06 +00:00 by littlefox · 1 comment
Owner

Found while adding the version line (#245). On iPhone (390 px) and Android (412 px), section.settings-screen has a scrollWidth of 686/680 px: every section is stretched to that width, so the screen scrolls sideways and the text runs off the right edge.

Cause: .settings is a grid with an automatic column, and a grid column is at least as wide as its widest item's min-content. The long selects ("Latin-1 när det går, annars UTF-8", the reading-order choice) set that width.

Fix: grid-template-columns: minmax(0, 1fr) and max-width: 100% on the selects; a spec checks there is no sideways scroll on phones.

Found while adding the version line (#245). On iPhone (390 px) and Android (412 px), `section.settings-screen` has a `scrollWidth` of 686/680 px: every section is stretched to that width, so the screen scrolls sideways and the text runs off the right edge. Cause: `.settings` is a grid with an automatic column, and a grid column is at least as wide as its widest item's min-content. The long `select`s ("Latin-1 när det går, annars UTF-8", the reading-order choice) set that width. Fix: `grid-template-columns: minmax(0, 1fr)` and `max-width: 100%` on the selects; a spec checks there is no sideways scroll on phones.
Author
Owner

Merged in #247; main run #401 green. Verified: settings.spec now checks that the settings screen does not scroll sideways (scrollWidth ≤ clientWidth) on all three profiles; iPhone screenshots looked at.

Merged in #247; main run #401 green. Verified: `settings.spec` now checks that the settings screen does not scroll sideways (scrollWidth ≤ clientWidth) on all three profiles; iPhone screenshots looked at.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
littlefox/neokom#246
No description provided.