Skip to content

Draw a rewrite's focus ring outside it, as the reply box's is - #2832

Merged
max-sixty merged 2 commits into
mainfrom
message-edit-field-height
Oct 14, 2026
Merged

max-sixty merged 2 commits into
mainfrom
message-edit-field-height

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

The rewrite field from #2813 drew its focus ring inside its border, while the Reply box draws its ring outside. A ring drawn outside lost its left and bottom sides. The margin card's transcript scrolls, and it kept no room past its edges beyond a 6px band at its end for an open progress group's border. The rewrite reaches back over the transcript's text inset to the Reply box's edges, so its ring ran past the transcript's edge and was clipped.

Now the transcript keeps room past its inline sides and its foot for whatever is drawn beyond a box: the larger of a focus ring and a progress group's border (--lf-transcript-room). That room comes out of the card's inset, so the words keep their place and width. The rewrite's inset-ring rule is deleted, and its ring matches the Reply box's.

The card's actions (✓ ×) also painted their opaque ground over the right side of a focused Edit or Save ring at the message's head. That ground now sits beneath the head's own controls, which stop short of the actions.

A new pixel test checks every side of the Edit, rewrite-field and Save rings in a just-sent comment's card. Without the transcript room the field ring's left and bottom sides fail; without the stacking change the Edit ring's right side fails.

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

max-sixty and others added 2 commits October 13, 2026 20:50
The rewrite field drew its ring inside its border while the reply box
beside it drew one outside. An outward ring lost its left and bottom sides:
the margin card's transcript scrolls and kept no room past its edges beyond
an open progress group's border at its end, and the rewrite reaches back
over the transcript's text inset to the reply box's edges.

The transcript now keeps room past its inline sides and its foot for
whatever is drawn beyond a box, the larger of a focus ring and a progress
group's border (`--lf-transcript-room`), taken from the card's inset so the
words keep their place and width. The rewrite's inset-ring rule is gone.

The card's actions also painted their ground over the right side of a
focused Edit or Save ring at the message's head. Their ground now stands
beneath the head's controls, which stop short of the actions.

A test now checks the pixels on each side of the Edit, rewrite field and
Save rings in a just-sent comment's card.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@max-sixty
max-sixty merged commit fa8ebca into main Oct 14, 2026
3 checks passed
@max-sixty
max-sixty deleted the message-edit-field-height branch October 14, 2026 05:24
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