Skip to content

Let a stuck card head's annotations scroll out with its message - #2314

Merged
max-sixty merged 2 commits into
mainfrom
thread-progress-toggle-sticky
Oct 11, 2026
Merged

max-sixty merged 2 commits into
mainfrom
thread-progress-toggle-sticky

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

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.

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

max-sixty and others added 2 commits October 10, 2026 15:55
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]>
@max-sixty
max-sixty merged commit 48297ef into main Oct 11, 2026
6 checks passed
@max-sixty
max-sixty deleted the thread-progress-toggle-sticky branch October 11, 2026 00:14
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