Phone: text bar fits 320, 44 px targets, Settings polish (#343 #346 #348) #373

Closed
kayg wants to merge 0 commits from issue/343-346-348-phone-bar-touch-settings-2 into dev
Owner

Replaces #371 (one row where it fits, per review). Fixes #343, #346 and #348 (the parts below). One branch because they all change the same phone bar and the same Settings page.

#343

  • The text and block bars stay ONE capsule row from 375 px up (hit areas touch: 36 px art, 8 px gaps, 4 px reach; the kind button ellipsizes before the row passes the 16 px gutters). Only below 375 px (320, 360) they are a two-line capsule. At 320 the text bar was 334 px wide (x -7 to 327); it is now 228 px wide in two lines; at 375, 390 and 430 it is one row, 337 px wide.
  • Insert grid: minmax(0, 1fr) columns, names clipped by an ellipsis, a little less air under 360 px. At 320 the tiles are 14 px from both sheet edges (they were 14 left, 4 right). "Link to note" is now "Note link" so every name fits whole.

#346 (phone, with a touch pointer; hit areas measured with elementFromPoint)

  • Bar: icons keep their 36 px art with 8 px gaps and 4 px of reach, so each hit area is 44 x 44 (was about 40 x 44). The pill, the kind button, Cancel and the tabs reach 44 tall with a pseudo-element. Only sizing and layout in bar.css; nothing about glass, blur or Morph.
  • A shared .reach class (base.css) grows a button's hit area to 44 x 44 from its own size. Used on Settings and card buttons (Sign out, Add a passkey, Install, Update, close).
  • Date group headers are 44 px tall on a phone (the list math uses the same number), Back is 44 tall, Filter is 44 tall.
  • Theme segments: size lg on a phone (44 px tall) and every option at least 44 px wide.
  • Accent swatches are at least 56 x 44 each with their names. The switch already reached 44 px.
  • Not done (mockup only): the mockup items in #346.

#348

  • The Theme help follows the chosen theme.
  • The swatches show their names (tooltip removed, not needed any more), in a 7-column row on wide screens and 4 + 3 under 560 px, so no dot is left alone.
  • Not done: the cramped theme segments at 320 (item 4, still 12.5 px text, they now at least meet 44 px), the stacked headings (5), the mockup pill over the title (6, mockup only).

Tests

  • New e2e/phone-targets.spec.ts (Chromium and WebKit, 320 / 360 / 375 / 390, touch): bars are inside the screen with a 16 px gutter, every bar target is 44 x 44, the Insert grid is balanced and unclipped, Settings has named swatches in 4 + 3 and every Settings target is 44 px. It fails on dev and passes here (checked both ways).
  • Passed with this change in chromium-390, webkit-390, chromium-1440: bar-, phone-, selector-fit, prefs, tooltips, safe-areas, touch-select, picker, day, info, switching. toast-bar "a toast that leaves its screen" and WebKit "a toast is the bar" fail the same on dev (not from this change).

Screenshots and measurements are on the issues.

🤖 Generated with Claude Code

https://claude.ai/code/session_018Yyy8fQGxPLkLa8v8NXz7T

Replaces #371 (one row where it fits, per review). Fixes #343, #346 and #348 (the parts below). One branch because they all change the same phone bar and the same Settings page. **#343** - The text and block bars stay ONE capsule row from 375 px up (hit areas touch: 36 px art, 8 px gaps, 4 px reach; the kind button ellipsizes before the row passes the 16 px gutters). Only below 375 px (320, 360) they are a two-line capsule. At 320 the text bar was 334 px wide (x -7 to 327); it is now 228 px wide in two lines; at 375, 390 and 430 it is one row, 337 px wide. - Insert grid: `minmax(0, 1fr)` columns, names clipped by an ellipsis, a little less air under 360 px. At 320 the tiles are 14 px from both sheet edges (they were 14 left, 4 right). "Link to note" is now "Note link" so every name fits whole. **#346** (phone, with a touch pointer; hit areas measured with `elementFromPoint`) - Bar: icons keep their 36 px art with 8 px gaps and 4 px of reach, so each hit area is 44 x 44 (was about 40 x 44). The pill, the kind button, Cancel and the tabs reach 44 tall with a pseudo-element. Only sizing and layout in `bar.css`; nothing about glass, blur or Morph. - A shared `.reach` class (base.css) grows a button's hit area to 44 x 44 from its own size. Used on Settings and card buttons (Sign out, Add a passkey, Install, Update, close). - Date group headers are 44 px tall on a phone (the list math uses the same number), Back is 44 tall, Filter is 44 tall. - Theme segments: size `lg` on a phone (44 px tall) and every option at least 44 px wide. - Accent swatches are at least 56 x 44 each with their names. The switch already reached 44 px. - Not done (mockup only): the mockup items in #346. **#348** - The Theme help follows the chosen theme. - The swatches show their names (tooltip removed, not needed any more), in a 7-column row on wide screens and 4 + 3 under 560 px, so no dot is left alone. - Not done: the cramped theme segments at 320 (item 4, still 12.5 px text, they now at least meet 44 px), the stacked headings (5), the mockup pill over the title (6, mockup only). **Tests** - New `e2e/phone-targets.spec.ts` (Chromium and WebKit, 320 / 360 / 375 / 390, touch): bars are inside the screen with a 16 px gutter, every bar target is 44 x 44, the Insert grid is balanced and unclipped, Settings has named swatches in 4 + 3 and every Settings target is 44 px. It fails on `dev` and passes here (checked both ways). - Passed with this change in chromium-390, webkit-390, chromium-1440: bar-*, phone-*, selector-fit, prefs, tooltips, safe-areas, touch-select, picker, day, info, switching. `toast-bar` "a toast that leaves its screen" and WebKit "a toast is the bar" fail the same on `dev` (not from this change). Screenshots and measurements are on the issues. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_018Yyy8fQGxPLkLa8v8NXz7T
Phone: text bar fits 320, 44 px targets, Settings polish (#343, #346, #348)
Some checks failed
CI / server (pull_request) Successful in 27s
CI / rust (pull_request) Successful in 2m45s
CI / web (pull_request) Failing after 2m15s
1a02bd1e1f
- Text and block bars are two lines on a phone: with 44 px targets six
  marks and the kind do not fit 288 px. No bar is wider than the screen
  at 320 (the text bar was 334 px, x -7 to 327).
- Insert grid: minmax(0, 1fr) columns and ellipsis, so it never pushes
  past the sheet padding; tiles are 14 px from both edges at 320.
- Phone targets reach 44 x 44 with pseudo-elements, art unchanged: bar
  icons (8 px gap, 4 px reach), pill, kind, tabs, Cancel; a shared
  `reach` class for Settings and card buttons; date headers (44 px
  tall), Back, Filter, theme segments (lg), swatches.
- Settings: Theme help follows the chosen theme; swatches show their
  names in 4 + 3 (7 on wide screens), never an orphan row.
- e2e phone-targets: bar inside the screen and every bar target 44 px at
  320/360/375/390; Insert padding; Settings swatches and targets.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Yyy8fQGxPLkLa8v8NXz7T
Phone bars: one row from 375 px, two lines only below (#343, #346)
Some checks failed
CI / web (pull_request) Failing after 1m52s
CI / server (pull_request) Successful in 26s
CI / rust (pull_request) Failing after 30m3s
f9dc14e935
The text and block bars stay one capsule row wherever it fits: hit areas
touch (36 px art, 8 px gaps, 4 px reach), the divider goes, and the kind
button gives way with an ellipsis before the row passes the 16 px
gutters. Under 375 px they are a two-line capsule. phone-targets checks
320, 360, 375, 390 and 430, and that the bars are one row from 375 up.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Yyy8fQGxPLkLa8v8NXz7T
Author
Owner

Landed in merge train #375.

Landed in merge train #375.
kayg closed this pull request 2026-10-14 21:47:51 +00:00
Some checks failed
CI / web (pull_request) Failing after 1m52s
CI / server (pull_request) Successful in 26s
CI / rust (pull_request) Failing after 30m3s

Pull request closed

Sign in to join this conversation.
No reviewers
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!373
No description provided.