Repository navigation
Keep the Edit focus ring inside the margin transcript - #3722
Merged
Merged
Conversation
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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_boxfailed 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.