Skip to content

Keep the Edit focus ring inside the margin transcript - #3722

Merged
leaf-agent merged 1 commit into
mainfrom
fix/ci-39917870081-ring
Oct 23, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
fix/ci-39917870081-ring

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

The margin card's transcript now reserves focus-ring room above its first message as well as at its sides and foot. Its scroll clip began at the message header, cutting the top edge of the focused Edit control's ring. Equal negative start margin keeps the message and card geometry in place while extending the scrollport around that ring.

test_a_rewrite_of_a_comment_just_sent_is_the_reply_box failed with the missing top edge in main CI run 39917870081 and passes locally after this CSS change. The test also checks the rewrite field and Save rings and the comment's position. Refs #3695; other failures remain under investigation.

@leaf-agent
leaf-agent merged commit 76f717c into main Oct 23, 2026
4 checks passed
@leaf-agent
leaf-agent deleted the fix/ci-39917870081-ring branch October 23, 2026 09:05
leaf-agent added a commit that referenced this pull request Oct 23, 2026
The margin transcript now starts its scroll clip above the first message
to leave room for the Edit focus ring (#3722). This test still expected
the clip and controls to start at the same y coordinate, so both
viewport cases failed by the new 6 px top padding. Compare the controls
with the first message's inset inside that clip, preserving the test's
checks that controls stay still and the reply ring stays whole.

Both cases failed on current `main` as in [run
39930571983](https://github.com/max-sixty/leaf/actions/runs/39930571983)
and pass locally after the assertion change: `uv run pytest -q
tests/browser/margin/test_card_reply.py::test_the_margin_reply_outside_the_transcript_shows_its_whole_ring`.
Refs #3695; the run's other browser failures need separate repairs.

Co-authored-by: leaf-agent <[email protected]>
leaf-agent added a commit that referenced this pull request Oct 23, 2026
The transcript's new top focus-ring room (#3722) extends into the margin
card's grip band. That transcript sits above the grip for hit testing,
so a press in the top band reaches the transcript and never starts a
carry. Raise the grip above the transcript; its clipped centre still
lets messages and controls receive their own presses.

The card case of
`test_a_dropped_surface_keeps_its_box_until_placement_commits` failed on
current `main` as in [run
39930571983](https://github.com/max-sixty/leaf/actions/runs/39930571983)
and passed after this change. Its composer case and
`test_a_rewrite_of_a_comment_just_sent_is_the_reply_box` also passed
locally. I ran `pnpm run build:browser`; it produced no generated change
for this stylesheet. Refs #3695.

Co-authored-by: leaf-agent <[email protected]>
leaf-agent added a commit that referenced this pull request Oct 23, 2026
The ring room added above the margin transcript in #3722 moved its
readable content edge 6 px below its scroll clip. The continuation fade
still measured sticky author heads from the clip edge, so it painted at
the wrong y position during scroll handoffs. Measure from the content
edge instead. The author test also sampled a known end-of-scroll gap as
though it held message text; keep the writer check when words are under
the head and recognize the narrow gap before the next visible writer,
the edge documented in #1763.

`test_the_thread_card_opens_on_its_latest_message_under_its_own_name`
failed on current `main` after #3722 and passed with this change; it
also passed with #3722's CSS temporarily removed, confirming the new
ring room as the cause. Both cases of
`test_a_stuck_card_head_keeps_the_name_and_lets_its_annotations_scroll_out`
passed locally. The runtime suite passed (533), `pnpm run check` passed,
and the committed kernel was rebuilt. Refs [run
39930571983](https://github.com/max-sixty/leaf/actions/runs/39930571983).

Co-authored-by: leaf-agent <[email protected]>
max-sixty added a commit that referenced this pull request Oct 24, 2026
Since #3722 the card's transcript keeps focus-ring room above its heads in its
top padding. A first unread reply landed with its top in that room never read:
read tracking saw nothing of its first pixels, so scrolling down from the
landing could not cover them. Measure the landing from the content edge.

Co-Authored-By: Claude Opus 5.5 (1M context) <[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.

1 participant