Skip to content

Keep the ring round an ask in a margin card whole - #5819

Merged
max-sixty merged 4 commits into
mainfrom
thread-option-focus-ring
Nov 11, 2026
Merged

max-sixty merged 4 commits into
mainfrom
thread-option-focus-ring

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

Next On Me (m) focusing an ask's options in a margin card drew its location ring with the whole right side missing and the foot of its corners cut, in Firefox and Chromium. The ring stands a region's gap outside the block (6px) and is 2px wide, so it reaches 8px; the card's transcript kept 6px past its edges (max(--focus-ring-room, --lf-group-ring-end)), so the whole band fell past the transcript's padding edge on the right. The room fit when it was set, at a control's 3px gap; #4732 moved every mark on a region to 6px and left the transcript's room where it was.

The transcript now keeps --focus-region-room (8px). It takes the extra 2px from the card's inset as before, so the words keep their place: leaf-dev stills of every margin card state at rest shows 0 changed pixels in Chromium and Firefox, and only the new ship-card-ask-keyboard state (ship-review's first m arrival, an ask in a card) changes, where the ring becomes whole. The browser/runtime/chrome.css header, which said every scroll region keeps a control's room, now says a scroll region pads its edges by the room of the widest ring it holds.

Tests: a margin card test lands m on a reply's options and reads their ring whole; it fails without the fix (right and bottom edges 2px outside the transcript). test_the_thread_card_opens_on_its_latest_message_under_its_own_name scrolled the transcript's box edge to the middle of the gap between two messages, where it meant the line heads stick on; that line stands one room below the edge, so the wider room put it on the next head. The test now aims at the line and passes with either room.

Bounded blocks, the case #4125 holds open, still keep no room at their sides; this change doesn't touch them.

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

Next On Me (`m`) focusing an ask's options in a margin card drew its ring with
the whole right side missing and the foot of its corners cut, in Firefox and
Chromium alike. The ring stands a region's gap outside the block: 6px out and
2px wide, so it reaches 8px. The card's transcript kept 6px past its edges,
`max(--focus-ring-room, --lf-group-ring-end)`, which a control's 5px ring fit.
#4732 moved every mark on a region from a control's 3px gap to 6px, and the
transcript's room stayed where it was, so the whole 2px band fell past the
transcript's padding edge.

The transcript now keeps a region's room (`--focus-region-room`, 8px). It takes
it from the card's inset as before, so the words keep their place: stills of
every margin card state at rest (plan-card, its keyboard, reply, aging and
resolved forms, ship-card-message-keyboard, ship-thread-open and
ship-option-thread-open) show 0 px changed in Chromium and Firefox.

The chrome.css header said every scroll region reserves `--focus-ring-room`,
which stopped covering a region's marks at #4732. It now says a scroll region
pads its edges by the room of the widest ring it holds.

Tests: a new margin card test lands Next On Me on a reply's options and reads
their location ring whole; it fails without the fix (right and bottom edges 2px
outside the transcript). The card-head fade test scrolled the transcript's box
edge, rather than the slot where heads stick, to the middle of the gap between
two messages. The slot stands one transcript room below that edge, so with the
wider room it met the next head; it now aims the slot itself, and passes with
either room. `leaf-dev stills` gains `ship-card-ask-keyboard`, the first `m`
arrival in ship-review, which lands on an ask in a card.
leaf-agent
leaf-agent previously approved these changes Nov 11, 2026
# Conflicts:
#	tests/browser/margin/test_card_reply.py
@max-sixty
max-sixty merged commit c718eac into main Nov 11, 2026
5 checks passed
@max-sixty
max-sixty deleted the thread-option-focus-ring branch November 11, 2026 21:46
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