Round 6: round corners on every layer, a snug PDF card, selected = lifted sheet (#245) #337

Closed
kayg wants to merge 0 commits from issue/245-round6 into dev
Owner

Round 6 of #245 (kayg, at night). Stacked on #317 → #311 → #292, which are in train 2026-10-14c. This PR's own change is the top commit.

  1. Rounded corners on every layer of a card:
    • Every picture and blur layer inside a card is rounded itself: the caption's blur band and its blur layer, photos, video posters, gallery prints and grid cells. WebKit draws a composited picture or a backdrop-filter square, even inside a rounded parent that clips.
    • The clip now uses overflow: clip.
    • Nothing that would start a backdrop root goes on the clip (no mask, no filter), so the caption's blur keeps sampling the photo.
  2. PDF card: it hugs the page preview, title and meta (fit-content, at most 380 px). The card went from 440 to 303 px wide at 1440, and from 366 to 285 px at 390.
  3. Selected = the lifted paper sheet (G6), shared in packages/ui:
    • New tokens --sheet-raise, --sheet-scale, --sheet-shadow and --sheet-hint, light and dark, plus styles/sheet.css with .lifted-sheet, ready for the app's blocks (#322).
    • Selected cards, galleries (the print in front, or the grid cell) and the PDF card now rise 2 px, scale to 1.012 and cast a deeper soft shadow, with the accent only as a faint 1 px edge.
    • Keyboard focus keeps its ring.
  4. Hunt (sweep at 320, 390, 900 and 1440, light and dark):
    • Toolbar room: the space kept for the mini toolbar was reserved all the time, so captions ("Alo… 1 of 5" at 900), code headers and note titles were cut off in narrow columns. One --bar-room rule now takes the room only while the toolbar shows.
    • Invisible +: on a phone, the + was invisible but still caught taps meant for the photo. Hidden now also means it can't be tapped.
    • Small galleries: galleries with fewer than five prints were pulled to the ends (three prints looked lopsided). They now use the original's middle places, re-centred.

No overflow found at any size. Preview is updated.

🤖 Generated with Claude Code

https://claude.ai/code/session_018Yyy8fQGxPLkLa8v8NXz7T

Round 6 of #245 (kayg, at night). **Stacked on #317 → #311 → #292**, which are in train 2026-10-14c. This PR's own change is the top commit. 1. **Rounded corners on every layer of a card:** - Every picture and blur layer inside a card is rounded itself: the caption's blur band and its blur layer, photos, video posters, gallery prints and grid cells. WebKit draws a composited picture or a `backdrop-filter` square, even inside a rounded parent that clips. - The clip now uses `overflow: clip`. - Nothing that would start a backdrop root goes on the clip (no mask, no filter), so the caption's blur keeps sampling the photo. 2. **PDF card:** it hugs the page preview, title and meta (`fit-content`, at most 380 px). The card went from 440 to 303 px wide at 1440, and from 366 to 285 px at 390. 3. **Selected = the lifted paper sheet (G6), shared in `packages/ui`:** - New tokens `--sheet-raise`, `--sheet-scale`, `--sheet-shadow` and `--sheet-hint`, light and dark, plus `styles/sheet.css` with `.lifted-sheet`, ready for the app's blocks (#322). - Selected cards, galleries (the print in front, or the grid cell) and the PDF card now rise 2 px, scale to 1.012 and cast a deeper soft shadow, with the accent only as a faint 1 px edge. - Keyboard focus keeps its ring. 4. **Hunt (sweep at 320, 390, 900 and 1440, light and dark):** - **Toolbar room:** the space kept for the mini toolbar was reserved all the time, so captions ("Alo… 1 of 5" at 900), code headers and note titles were cut off in narrow columns. One `--bar-room` rule now takes the room only while the toolbar shows. - **Invisible +:** on a phone, the + was invisible but still caught taps meant for the photo. Hidden now also means it can't be tapped. - **Small galleries:** galleries with fewer than five prints were pulled to the ends (three prints looked lopsided). They now use the original's middle places, re-centred. No overflow found at any size. Preview is updated. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_018Yyy8fQGxPLkLa8v8NXz7T
Round 6: round corners on every layer, a snug PDF card, selected = lifted sheet (#245)
Some checks failed
CI / server (pull_request) Successful in 25s
CI / web (pull_request) Failing after 27s
CI / rust (pull_request) Successful in 1m53s
35e4a3e681
- Corners: every picture and blur layer inside a card is rounded itself
  (the caption's blur band, photos, posters, gallery prints, grid cells),
  because WebKit draws a composited picture or a backdrop-filter square
  inside a rounded parent. The clip uses overflow: clip, and nothing on it
  that would make it a backdrop root.
- PDF card: hugs the page preview, title and meta (fit-content, at most
  380 px), no empty slab.
- Selected (G6, shared in packages/ui): tokens --sheet-raise, --sheet-scale,
  --sheet-shadow, --sheet-hint and sheet.css's .lifted-sheet. Selected
  cards, gallery prints, grid cells and the PDF card rise a hair, grow a
  touch and cast a deeper shadow, the accent only a faint edge; keyboard
  focus keeps its ring. Ready for the app's blocks (#322).
- Hunt: the toolbar's room is only taken while it shows (one --bar-room
  rule), so captions, code headers and note titles use the full width at
  rest in narrow columns; a hidden + no longer catches taps meant for the
  photo; galleries with fewer than five prints use the original's middle
  places, re-centred, instead of being pulled to the ends.

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

Landed in merge train #342.

Landed in merge train #342.
kayg closed this pull request 2026-10-14 19:15:25 +00:00
Some checks failed
CI / server (pull_request) Successful in 25s
CI / web (pull_request) Failing after 27s
CI / rust (pull_request) Successful in 1m53s

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!337
No description provided.