Seamless phone edges: glass under the status bar, Settings in Safari, lists end at the bottom (#445) #461
Loading…
Reference in a new issue
No description provided.
Delete branch "train/2026-10-16o"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Seamless top and bottom edges on iPhone (#445). Built on
train/2026-10-15n2(dev + #443 + #446). It carries the #447 commit (the Home Screen app reaching the screen's bottom) and the 320x568home-screen.spec:186fix, so #447 need not land separately.What was wrong (seen in the iOS 27 simulator, harness #451)
background-color. Shown with a red root: the top ~95 pt of the glass turned red, and nothing else did. Extending the glass upwards changes nothing. The root colour is the glass over--edge-key, and for a photo that key was the average of the built-in mountains photo. So with an upload, or any photo whose top differs, the glass under the status bar went flat and greyer: top vs 70-100 pt below, Δ13 to Δ17.home-screen.spec.ts:186at 320x568 saw the scroller at 580 instead of 568 in train n.Fix
glass-edge.ts: for a photo (built-in, upload or Unsplash),--edge-keyis the part of the picture under the screen's top 48 px, sampled from the picture that is on screen (background-size: covergeometry). It is sampled again when that picture loads and when the screen turns. The root colour (--edge-glass) follows from it. Sky and plain backdrops are unchanged; they were already right.Settings.svelte: no frame shadow on a phone. In a Safari tab the text fades into the paper strip under the toolbar, as the lists do. In the Home Screen app there is no fade.PhoneStack.svelte: the list fills only what the top bar leaves (flex: 1; min-height: 0), so it ends at the screen's bottom.Simulator (iPhone 18 Pro, iOS 27.0; kayg's phone runs iOS 27 too)
Gutter colour, status bar (8-50 pt) vs just below (70-100 pt), and the largest step near each edge:
Before/after contact sheets (Home Screen light, Home Screen dark, Safari light, Safari dark) are on #445.
No flicker of the bar colour on route changes: a 60 fps recording of Journal → note → back → Places → Journal, in Safari and in the Home Screen app, shows the colour switch once per change (glass ↔ paper) and never pass through another value.
Tests
--no-deps, phone-edges, phone-bars, safe-areas, home-screen, pwa, bar-*. Run on the same tree based on train n (identical to this branch's tree):home-screen.spec:186at 320x568 (the train n failure): passes. The scroller now ends at 568.Limit: a photo whose top varies a lot from side to side can't be matched by one colour. WebKit gives the blur only one colour above the screen. The strip now has the photo's own average, so it follows the picture instead of standing apart from it.
🤖 Generated with Claude Code
https://claude.ai/code/session_018Yyy8fQGxPLkLa8v8NXz7T
(Replaces #455, merged with current dev. Review on #455.)
Every font size is counted in --type-px (1/16 of the root size) instead of px: the type tokens and the ~285 stray sizes in apps/web, packages/ui and apps/mockup. The root is the browser's own size (html { font-size: 100% }), Android's font scale (meta text-scale), and on iPhone/iPad the system text size via `font: -apple-system-body`, scaled so the usual setting is pixel-identical. Pills, bars, list rows and fields grow with their words (min-height, or heights in type-px). From about 120% (data-text="large", lib/text-size: one ResizeObserver on a probe, never per frame) the phone bar keeps two lines, swatches become rows, Insert takes fewer tiles a row, theme segments wrap, keyboard keys go under their names. Titles stop growing at 13vw so long words fit. New e2e/text-size.spec.ts checks the usual size is unchanged and that nothing is cut off or sideways at 200% on 320/390/1440. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018Yyy8fQGxPLkLa8v8NXz7T