Style sheet: hide Width on phones #395

Closed
opened 2026-10-15 03:36:09 +00:00 by kayg · 2 comments
Owner

kayg, 09:03 on an iPhone (Safari): the Width section (Narrow / Wide / Full) still shows in the Style sheet on a phone. On a phone the page is always the screen's width, so the control does nothing there and should not be shown. Screenshot attached.

Fix: hide Width in the Style sheet (and in Settings → Editor) when the window is phone-sized, using the same breakpoint the app uses for the phone layout. Add a test at 320/360/375/390 that it's absent and at 900/1440 that it's present.

kayg, 09:03 on an iPhone (Safari): the **Width** section (Narrow / Wide / Full) still shows in the Style sheet on a phone. On a phone the page is always the screen's width, so the control does nothing there and should not be shown. Screenshot attached. Fix: hide Width in the Style sheet (and in Settings → Editor) when the window is phone-sized, using the same breakpoint the app uses for the phone layout. Add a test at 320/360/375/390 that it's absent and at 900/1440 that it's present.
Author
Owner

Evidence (PR #404)

Width is hidden at phone size (390) and shown at 1440.

390-light
390-light

390-dark
390-dark

1440-light
1440-light

1440-dark
1440-dark

Tests: new width.spec test (320/360/375/390 absent, 900/1440 present) passes on chromium-390, webkit-390, chromium-1440; width, prefs, phone-targets, bar-taps specs also pass on all three (phone-bars passes on chromium-390 and partly on webkit-390 before the run timed out). svelte-check: 0 errors.

Evidence (PR https://git.kayg.org/kayg/calternal/pulls/404) Width is hidden at phone size (390) and shown at 1440. 390-light ![390-light](https://git.kayg.org/attachments/749439f8-d0b1-40e0-b1a3-3cbb9273826d) 390-dark ![390-dark](https://git.kayg.org/attachments/562674f7-1041-4f4d-bee3-3226ec37d2c4) 1440-light ![1440-light](https://git.kayg.org/attachments/c716501c-2d8c-4758-a2ec-d0c27bc75a90) 1440-dark ![1440-dark](https://git.kayg.org/attachments/b50788d4-73d3-4ecf-ba40-2c5102318626) Tests: new width.spec test (320/360/375/390 absent, 900/1440 present) passes on chromium-390, webkit-390, chromium-1440; width, prefs, phone-targets, bar-taps specs also pass on all three (phone-bars passes on chromium-390 and partly on webkit-390 before the run timed out). svelte-check: 0 errors.
Author
Owner

Closing during the 26 Oct handover cleanup: Width is hidden on phones in dev (PR #404).

Closing during the 26 Oct handover cleanup: Width is hidden on phones in dev (PR #404).
kayg closed this issue 2026-10-26 08:46:18 +00:00
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
kayg/calternal#395
No description provided.