Skip to content

Stand badges, the slider's pictures and an option's corners on their frame's edge or clear of it - #7373

Merged
max-sixty merged 3 commits into
mainfrom
agent-a397c472015de6553
Nov 27, 2026
Merged

max-sixty merged 3 commits into
mainfrom
agent-a397c472015de6553

Conversation

@max-sixty

@max-sixty max-sixty commented Nov 27, 2026 •

Copy link
Copy Markdown
Owner

Four marks Leaf draws nearly met the edge of the frame they sit in, as the geometry reading in #7366 lists on main: the panel leaf's count (1px inside the panel's corner in the row, crossing the folded tile's corner) and its news dot; a margin entry's unread dot (inside its corner, 0.4px over the border); a 1px strip of ground between the slider comparison's ring and the picture, and the same strip in the pixel view; and, before the runtime loads, a joined option list's last option taking the group's foot corners above the reserve for Add and Done.

Badges now follow one rule in .lf-badges (controls.css): a badge at an end of the row is centred on its box's corner, halfway round the corner's curve, derived from the box's rounding and each badge's size. A margin entry's dot moves 3.2px out and its count 1.7px out; a pin's dot 1.2px out. The folded tile's badges straddle its corners again, as before #3650. In the row the panel's card clips anything crossing its edge (an open view's corners rely on that clip), so the leaf's badges stand --lf-clear inside the panel's corner, and the count moves 3px down and left. In the row the count now covers about a third of the leaf's mark, up from a sliver. Max chose this over seating the count on the panel's corner, which would need the card to stop clipping and an open view to clip itself, and which hangs the count over the panel's side with a view open or a draft of several lines. Folding or unfolding also shifts the count 8px against the leaf in the motion's first frame, since the motion carries the leaf whole.

The slider and the pixel view are now the picture's size, their ring in the 1px the canvas keeps for it. An option above the reserve no longer takes the foot's corners. Two stills states join: leaf-folded and options-startup.

Three defects review found beside these are fixed too: on a right-to-left page, badges wider than the row's leaf now run into the panel instead of past its edge, where the card cut the error dot; with an error and news on the folded tile, the second dot stands centred on the top edge instead of crossing it by half a pixel; and a group nested in an option no longer inherits its holder's reserve before loading (64px for a 32px Done row).

Asked for by Max. After the change, #7366's reading of the affected states finds none of these faults in Chromium or Firefox. Tests: the badge and shot browser tests by node id, the theme-token and rounded-box model tests, and the stills model tests.

This was written by Claude Code on behalf of max-sixty

…frame's edge or clear of it

Four marks Leaf draws nearly met the edge of the frame they sit in, as the geometry
reading of #7366 lists on main:

- The panel leaf's count stood 1px inside the panel's top-right corner in the row,
  and crossed the folded tile's rounded corner by 1.4px; the news dot stood 0.9px
  from the tile's corner. #3650 shrank the leaf inside its tile and kept the badge
  offsets that had seated the count on the tile's corner.
- A margin entry's or marker's unread dot sat inside its rounded corner, its edge
  0.4px over the border.
- The slider comparison left a 1px strip of its ground between its ring and the
  picture, from #3704's transparent frame border. The pixel view had the same strip.
- Before the runtime loads, a joined option list's last option took the group's
  foot corners, though the reserve for Add and Done stood below it.

Badges now follow one rule (`.lf-badges`, controls.css): a badge at an end of the
row is centred on its box's corner, on the outline halfway round the corner's curve.
The seat is derived from the box's rounding and each badge's size, so it follows a
theme that changes either. On a margin entry the dot moves 3.2px out to that point
and the count 1.7px out; a pin's dot moves 1.2px out, and the pin's own 2px offset
goes. On the folded tile the count and dots straddle its corners again, as before
#3650. In the row, the panel's card clips whatever crosses its edge, and an open
view's corners rely on that clip, so the leaf's badges stand `--lf-clear` inside
the panel's corner: the count moves 3px down and left, further over the leaf's tip.
Folding or unfolding now shifts the count 8px against the leaf in the motion's first
frame, since the motion carries the leaf whole.

The slider and the pixel view are now the picture's size and stand in the 1px the
canvas keeps for their ring. The slider's frames keep no room of their own, so three
browser tests that measured a slider frame with that room now read the picture's
size, and the test of where a capture stands in each view now holds it within half
a pixel of its window's edge, which the pixel view's strip failed.

An option with the reserve below it no longer takes the foot's corners
(`--lf-option-over-reserve`).

Two stills states join the catalogue: `leaf-folded`, the folded leaf with its count
and news dot, and `options-startup`, a joined option list before the runtime loads.
No state showed either.
leaf-agent
leaf-agent previously approved these changes Nov 27, 2026
…a nested option group's reserve its own

Three defects review found beside the badge and option changes:

- On a right-to-left page the panel row's leaf stands at the panel's left edge,
  and badges wider than the leaf (a two-digit count, news and an error) ran past
  its left end, where the card cut 2.5px off the error dot. They now run past its
  right end, into the panel.
- With an error and news on the folded tile, the second dot stood at the corner's
  depth, 3.5px below the tile's top edge, which it crossed by half a pixel. A dot
  beside the corner's now stands centred on the top edge (`--lf-badge-arc`, the
  corner's depth, now named in `.lf-badges`).
- Before the runtime loads, a group nested in an option inherited its holder's
  `--lf-missing-add`, so a closed group taking several answers reserved 64px for its
  32px Done row. Each group now resets the reserve's lengths, as it does the width
  of a row laid across.

`test_a_control_s_badges_stand_apart_whichever_show` now also reads the leaf's
badges in the row, where each stands 4px clear inside the panel in both
directions, and on the folded tile, where each is centred on the tile's outline;
both checks fail without these fixes. `test_a_nested_group_reserves_only_the_cells_it_will_draw`
holds the runtime and compares a nested group's reserve with a lone one's (64 to
32 before).
max-sixty added a commit that referenced this pull request Nov 27, 2026
…he frame rounds it too

The edge reading credited a rounding clip only on the frame or a box around
the frame, so a box whose corner a clip between it and its frame rounds read
as overhanging the frame's arc. On #7373's 0b856aa055, where the panel card
no longer clips and its open view clips itself with rounded top corners, a
list's heading band inside the view read "overhang TopLeft/TopRight -5px" in
six states (on-me-question, on-me-thread-choice, plan-panel,
plan-panel-keyboard, ship-threads, threads-drafts), though the view rounds
the band and it looks as it did.

A box now shows at a corner only inside every box that clips it, from its
containing block out past its frame to the first box placed against the
window, each a rectangle rounded at its corners. Its clearance at the frame's
arc is the most any of those shapes leaves, the box itself included, so a
clip that rounds the corner takes it for the box wherever the clip stands.
The cut reading keeps to the clips from the box to its frame.

After the change, on 0b856aa055 the six heading findings are gone and the
count's "overhang right -5px" stays in the view-open states and the tall
draft (plan-page-comment-long); on main's CSS the touching count (round
TopRight 0px) and the margin dot (round TopLeft -0.4px) stay; on #7373's
06b5fb3, gallery-comparison and accepted-page-search read nothing.

> _This was written by Claude Code on behalf of max-sixty_
@max-sixty
max-sixty merged commit 5fbd2c9 into main Nov 27, 2026
6 checks passed
@max-sixty
max-sixty deleted the agent-a397c472015de6553 branch November 27, 2026 17:56
leaf-agent added a commit that referenced this pull request Nov 28, 2026
…e has grown (#7534)

Switching an `lf-shot` from Slider to Pair took the page back to its top
when the page had been scrolled by a script. The cause is in the
runtime's scroll bookkeeping, not in the shot. `dom/scrolling.ts`
decides whether a scroll was the reader's choice or layout's move by
comparing the page's extent with the last one it recorded, and it
watched only the root element for changes. The root stands the window's
height (900 px in the test, while the body is 1517 px), so its size
never changed as content grew, and the recorded extent stayed at the
page's arrival size. After that, every single-jump scroll of the page,
such as the test's `scrollIntoView`, read as layout's, so no choice was
recorded. The next reading-region shift then restored the place the page
arrived with, its top.

#7373 didn't introduce this bug, it exposed it. It made a slider frame
the picture's width (600 px) where a Pair frame keeps its ring (602 px),
so a view switch now changes the width of the frames' reading regions
and announces a shift. Before #7373 both frames were 602 px, so the
switch shifted nothing. #7373's sizing stays as it is.

The page's children are now watched for size the same way a scrolling
box's children already are, so the page's extent follows its content. A
wheel scroll was never affected, because a wheel is recorded as the
reader's input either way.

Verification:
-
`tests/journeys/test_render_controls.py::test_each_control_archetype_holds_its_neighbours_still[shot-view]`
fails on main (`6313a6f59`), with the radios moved by 617 px, and passes
with the change. The archetype test's other four cases also pass.
- `pnpm run test:runtime` passes (1237 tests).
- 521 browser tests in `test_render_shift_watch.py` and the two
`test_reading_place.py` files, selected with `-k "clamp or script or
anchor or shift or layout"`, pass.

Closes #7530 — automated triage

Co-authored-by: leaf-agent <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants