Phone, 320 px wide: the text bar is wider than the screen and the Insert grid loses its right padding #343

Closed
opened 2026-10-14 19:16:21 +00:00 by kayg · 3 comments
Owner

Where: app, phone widths 320 to 360. Light and dark.

1. The text bar spills past both screen edges at 320 px. Put the caret in a note (tap a paragraph). The bar is 334 px wide on a 320 px screen: it runs from x = -7 to x = 327, so its rounded ends are cut off and the last icon (link) touches the edge. At 360 px it has only 13 px on each side, at 390 px it has 28 px. The tab bar and the note-tools bar are fine at 320 (they are 260 px wide).

2. The Insert sheet's tile grid is lopsided at 320 px. Sheet is x = 8 to 312. Tiles start at x = 22 (14 px padding on the left) but the right column ends at x = 308 (4 px on the right). The label "Subheading" is what pushes the column out. At 390 px the gaps are 14 and 14. WebKit does not show this (its text is a little narrower), so it is a font-width problem, not a rule.

Suggested fix: let the text bar drop to two rows or hide the less-used buttons under about 340 px (keep a 16 px gutter like every other phone surface); make the Insert grid columns minmax(0, 1fr) with the label clipped by an ellipsis so the grid can never be wider than its padding.

Found in kayg's overnight UI/UX hunt (#174). App = apps/web at train commit 2ea759c, run locally against the real server with a development user; mockup = https://preview.calternal.cloud.

**Where:** app, phone widths 320 to 360. Light and dark. **1. The text bar spills past both screen edges at 320 px.** Put the caret in a note (tap a paragraph). The bar is 334 px wide on a 320 px screen: it runs from x = -7 to x = 327, so its rounded ends are cut off and the last icon (link) touches the edge. At 360 px it has only 13 px on each side, at 390 px it has 28 px. The tab bar and the note-tools bar are fine at 320 (they are 260 px wide). **2. The Insert sheet's tile grid is lopsided at 320 px.** Sheet is x = 8 to 312. Tiles start at x = 22 (14 px padding on the left) but the right column ends at x = 308 (4 px on the right). The label "Subheading" is what pushes the column out. At 390 px the gaps are 14 and 14. WebKit does not show this (its text is a little narrower), so it is a font-width problem, not a rule. **Suggested fix:** let the text bar drop to two rows or hide the less-used buttons under about 340 px (keep a 16 px gutter like every other phone surface); make the Insert grid columns `minmax(0, 1fr)` with the label clipped by an ellipsis so the grid can never be wider than its padding. Found in kayg's overnight UI/UX hunt (#174). App = `apps/web` at train commit 2ea759c, run locally against the real server with a development user; mockup = https://preview.calternal.cloud.
Author
Owner

Screenshots (all taken tonight, Chromium unless it says WebKit):

320 dark: text bar cut off on both sides (bar is x -7 to 327)
text-320-dark.png

390 light for comparison: 28 px gutters
text-390-light.png

320 light: Insert grid, right column 4 px from the sheet edge, left 14 px
insert-320-light.png

Screenshots (all taken tonight, Chromium unless it says WebKit): **320 dark: text bar cut off on both sides (bar is x -7 to 327)** ![text-320-dark.png](https://git.kayg.org/attachments/abfd89ca-49b2-40c9-b311-81a9a52616f4) **390 light for comparison: 28 px gutters** ![text-390-light.png](https://git.kayg.org/attachments/b2f223a1-000b-4f78-83fa-6e8630169559) **320 light: Insert grid, right column 4 px from the sheet edge, left 14 px** ![insert-320-light.png](https://git.kayg.org/attachments/a0961307-8d88-434e-9df7-05c5abb8e45c)
Author
Owner

Fixed in PR #371 (branch issue/343-346-348-phone-bar-touch-settings). Chromium, real server, touch emulation; WebKit gives the same numbers.

Measure Before After
Text bar at 320 x -7 to 327 (334 wide, cut off both sides) x 46 to 274 (228 wide, two lines)
Block bar at 320 x 7 to 314 (4 px gutters in WebKit, 8 in Chromium) x 68 to 252
Insert tiles at 320 (sheet 8 to 312) x 22 to 308 (14 left, 4 right) x 22 to 298 (14 and 14)
Insert tiles at 390 14 and 14 14 and 14
Clipped Insert names none (but "Subheading" pushed the column out) none at 320, 360, 375, 390

The text bar is now two lines on a phone: the kind and the link on top, the five marks below (the block bar: kind and Done, then the actions). One line cannot hold the kind and six marks at 44 px targets inside 288 px. A new e2e (phone-targets.spec.ts) fails on dev and passes here: at 320, 360, 375 and 390 no bar leaves the screen or its 16 px gutter, and the Insert grid has equal padding.

Text bar at 320, dark

before: b-text-320-dark.png
after: a-text-320-dark.png

Text bar at 390, light

before: b-text-390-light.png
after: a-text-390-light.png

Block bar at 320, dark

before: b-block-320-dark.png
after: a-block-320-dark.png

Insert at 320, light (right gap was 4 px)

before: b-insert-320-light.png
after: a-insert-320-light.png

Insert at 390, dark

before: b-insert-390-dark.png
after: a-insert-390-dark.png

Fixed in PR #371 (branch `issue/343-346-348-phone-bar-touch-settings`). Chromium, real server, touch emulation; WebKit gives the same numbers. | Measure | Before | After | |---|---|---| | Text bar at 320 | x -7 to 327 (334 wide, cut off both sides) | x 46 to 274 (228 wide, two lines) | | Block bar at 320 | x 7 to 314 (4 px gutters in WebKit, 8 in Chromium) | x 68 to 252 | | Insert tiles at 320 (sheet 8 to 312) | x 22 to 308 (14 left, 4 right) | x 22 to 298 (14 and 14) | | Insert tiles at 390 | 14 and 14 | 14 and 14 | | Clipped Insert names | none (but "Subheading" pushed the column out) | none at 320, 360, 375, 390 | The text bar is now two lines on a phone: the kind and the link on top, the five marks below (the block bar: kind and Done, then the actions). One line cannot hold the kind and six marks at 44 px targets inside 288 px. A new e2e (`phone-targets.spec.ts`) fails on `dev` and passes here: at 320, 360, 375 and 390 no bar leaves the screen or its 16 px gutter, and the Insert grid has equal padding. **Text bar at 320, dark** before: ![b-text-320-dark.png](https://git.kayg.org/attachments/db7c781c-4a18-402d-829e-ff1fefaaa9f2) after: ![a-text-320-dark.png](https://git.kayg.org/attachments/2de49044-6657-4e48-b35f-a32bc1686472) **Text bar at 390, light** before: ![b-text-390-light.png](https://git.kayg.org/attachments/2e0c5bd2-7d06-4b1e-9c9d-9dfc64703d91) after: ![a-text-390-light.png](https://git.kayg.org/attachments/d1775e7b-b411-43f0-8f31-342394975b54) **Block bar at 320, dark** before: ![b-block-320-dark.png](https://git.kayg.org/attachments/9984f480-6b45-47a5-a061-dd1109712085) after: ![a-block-320-dark.png](https://git.kayg.org/attachments/bc5fad25-8b95-43f4-9895-4445592c39f9) **Insert at 320, light (right gap was 4 px)** before: ![b-insert-320-light.png](https://git.kayg.org/attachments/29903ccb-7685-4878-809b-6e73134ec87f) after: ![a-insert-320-light.png](https://git.kayg.org/attachments/765da659-3a29-4baf-8343-b5893570b6b1) **Insert at 390, dark** before: ![b-insert-390-dark.png](https://git.kayg.org/attachments/45c9c5ba-a918-4da2-b3e8-4970e38f84c1) after: ![a-insert-390-dark.png](https://git.kayg.org/attachments/aec80b14-4b91-47c7-89b7-63b36d2d3e60)
Author
Owner

Update, PR #373 (replaces #371, per review): the text and block bars are ONE capsule row wherever it fits, and two lines only below 375 px.

Text bar Before Now
320 x -7 to 327 (334 wide, cut off) two lines, x 46 to 274 (228 wide)
360 13 px gutters (334 wide) two lines, 228 wide
375 334 wide one row, x 19 to 356 (337 wide)
390 one row, 334 wide one row, x 27 to 364 (337 wide)
430 one row one row, x 47 to 384

Hit areas touch (36 px art, 8 px gaps, 4 px of reach each side), the divider is gone on a phone, and the kind button ("Text ▾") gives way with an ellipsis before the row could pass the 16 px gutters. Every target is 44 x 44 in both layouts. The Insert grid fix is unchanged (14 px both sides at 320). phone-targets.spec.ts now covers 320, 360, 375, 390 and 430 and asserts one row from 375 up; it passes in Chromium and WebKit, with bar-taps and bar-stable.

Text bar at 320, dark (before)

before: b-text-320-dark.png
after: c-text-320-dark.png

Text bar at 390, dark (before, one row)

before: b-text-390-dark.png
after: c-text-390-dark.png

Update, PR #373 (replaces #371, per review): the text and block bars are ONE capsule row wherever it fits, and two lines only below 375 px. | Text bar | Before | Now | |---|---|---| | 320 | x -7 to 327 (334 wide, cut off) | two lines, x 46 to 274 (228 wide) | | 360 | 13 px gutters (334 wide) | two lines, 228 wide | | 375 | 334 wide | one row, x 19 to 356 (337 wide) | | 390 | one row, 334 wide | one row, x 27 to 364 (337 wide) | | 430 | one row | one row, x 47 to 384 | Hit areas touch (36 px art, 8 px gaps, 4 px of reach each side), the divider is gone on a phone, and the kind button ("Text ▾") gives way with an ellipsis before the row could pass the 16 px gutters. Every target is 44 x 44 in both layouts. The Insert grid fix is unchanged (14 px both sides at 320). `phone-targets.spec.ts` now covers 320, 360, 375, 390 and 430 and asserts one row from 375 up; it passes in Chromium and WebKit, with bar-taps and bar-stable. **Text bar at 320, dark (before)** before: ![b-text-320-dark.png](https://git.kayg.org/attachments/2550ecc6-d489-4200-9bd8-d6d99229a000) after: ![c-text-320-dark.png](https://git.kayg.org/attachments/453b0904-c7fe-4e8c-8fea-fa513144b049) **Text bar at 390, dark (before, one row)** before: ![b-text-390-dark.png](https://git.kayg.org/attachments/5cd5b678-5591-4197-af58-d0c5c37ffcb1) after: ![c-text-390-dark.png](https://git.kayg.org/attachments/66756a1b-aa46-42de-973d-ad9b91947310)
kayg closed this issue 2026-10-14 21:47:52 +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#343
No description provided.