Repository navigation
Let a stuck card head's annotations scroll out with its message - #2314
Merged
Merged
Conversation
In the floating thread card (the card `t` or a margin marker opens while the Threads panel is closed), each message's head sticks to the top of the transcript so the row always names who wrote the words under it (#1763). Everything in that head stuck with it, so a long reply carrying "Show 1 progress message" kept offering its earlier updates over every line of the reply, and an edited or sending label did the same. Now only the writer's name and the time stick. The head's annotations (the progress disclosure, delivery receipt, failure, suggestion and edited labels) scroll out with the reply's first line, as the words do. A view timeline on each message cancels the sticky offset for them during the first two head heights of its exit, which also clears a disclosure that a narrow card wraps onto a second row; past that the transcript clips them. The timeline has no inset, since the transcript's scroll padding is ring room rather than where the head sticks; with the default inset the annotations started moving 3px early. All of it is CSS, in `annotation-chrome.css`, beside the sticky head rule. - A wrapped disclosure rises under the name and the time rather than over them: those two paint their message's ground above it, and the name's ground spans the gap to the time. - A keyboard-focused disclosure stays in the stuck row, so Tab still reaches it while the head is stuck. - The metadata clips only sideways while the mechanism is on, for its ellipsis, so a label rises to the card's edge instead of vanishing at the metadata's own top. - The rules sit inside `@supports (animation-timeline: view())`. An engine without view timelines would run the animation on the document clock, whose filled end holds the annotations 56px above their row at rest; Firefox 155 keeps today's behaviour instead. Chromium 153 and WebKit 26.6 support it. A narrow card's stuck head stays as tall as its wrapped two rows, now with the second row empty; it was already that tall before this change, holding the disclosure. Making only one row stick is a separate restructure of the card head. Tests: new `test_a_stuck_card_head_keeps_the_name_and_lets_its_annotations_scroll_out`, at desktop width and a 311px touch card. It scrolls a long edited reply past the card's top in steps and asserts the name and time stay put and stay on top (including the gap between them) while the disclosure and the edited label move with the reply's opening and leave, and that a focused disclosure stays in the row. It fails without the change, without the z-order, and without the gap cover. The thread snapshots and chrome contracts pass unchanged. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
approved these changes
Oct 10, 2026
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.
In the floating thread card (the card
tor a margin marker opens while the Threads panel is closed), each message's head sticks to the top of the transcript so the row always names who wrote the words under it (#1763). Everything in that head stuck with it, so a long reply carrying "Show 1 progress message" kept offering its earlier updates over every line of the reply, and an edited or sending label did the same.Now only the writer's name and the time stick. The head's annotations (the progress disclosure, delivery receipt, failure, suggestion and edited labels) scroll out with the reply's first line, as the words do. A view timeline on each message cancels the sticky offset for them during the first two head heights of its exit, which also clears a disclosure that a narrow card wraps onto a second row; past that the transcript clips them. The timeline has no inset, since the transcript's scroll padding is ring room rather than where the head sticks; with the default inset the annotations started moving 3px early. All of it is CSS, in
annotation-chrome.css, beside the sticky head rule.@supports (animation-timeline: view()). An engine without view timelines would run the animation on the document clock, whose filled end holds the annotations 56px above their row at rest; Firefox 155 keeps today's behaviour instead. Chromium 153 and WebKit 26.6 support it.A narrow card's stuck head stays as tall as its wrapped two rows, now with the second row empty; it was already that tall before this change, holding the disclosure. Making only one row stick is a separate restructure of the card head.
Tests: new
test_a_stuck_card_head_keeps_the_name_and_lets_its_annotations_scroll_out, at desktop width and a 311px touch card. It scrolls a long edited reply past the card's top in steps and asserts the name and time stay put and stay on top (including the gap between them) while the disclosure and the edited label move with the reply's opening and leave, and that a focused disclosure stays in the row. It fails without the change, without the z-order, and without the gap cover. The thread snapshots and chrome contracts pass unchanged.