Repository navigation
Show a thread's held news on its head line - #3102
Merged
Merged
Conversation
While a thread open in the floating panel held news (replies, edits, reactions or a resolve that arrived while the user wrote), its notice stood at the end of the first message's head, cut to 5rem, so it read "2 new rep…". On a margin card the notice lay over the end of the message head beside the card's actions, covering the time. The floating panel now stands the notice on its view's head line, with the thread's other facts, before "N of M": whole, at the size of "N of M" in the ink of what the user may act on. The title shortens to give it room, and nothing else in the head or the messages moves. The primary reader takes the place from a new nomination, `parts.news(key, outlet)`; a presentation that names none, such as a package's conversation reader or On's ask cards, keeps the notice at the end of the first part's head, whose 5rem room is now kept only where the notice stands. No message head in the panel's thread view carries news or keeps its room. A margin card stands the notice first in its head row, before Previous, the position and Next, Resolve and Close. The card keeps its width while it holds news, so the notice takes its room from the heads' track and the actions keep their places; a short author name keeps its whole width there, and the time gives way first. The overlay rule that laid the notice over the head is gone. The New reply pill and the old Threads panel are unchanged. Tests: `test_held_news_reads_whole_on_the_thread_s_head_line` is new; the floating panel's held-news checks read the notice in the head, and the margin card's news test checks it stands whole in the head row. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
# Conflicts: # skills/leaf/kernel/kernel.json
leaf-agent
approved these changes
Oct 16, 2026
max-sixty
added a commit
that referenced
this pull request
Oct 16, 2026
Follow-up to #3102. A margin card at its narrowest (320px), with Previous and Next for its target's two threads and "2 new replies" held while the user writes, leaves its message heads 67px wide. The metadata shrank while the name kept its width, so the head clipped the time mid-letter: "Me just nov". The head row now gives up room in one order: first the annotations after the time (such as "· Sent"), each with an ellipsis, then the name, with an ellipsis. The time is never cut, and the notice still reads whole. In the margin card, `.lf-msg-meta` is a grid whose least width is the time's, because each annotation's track contributes nothing to it. It shrinks with a weight of a million to the name's one, so the name keeps its whole width whenever cutting the annotations alone makes the room. Each annotation carries its own gap, so an annotation cut to nothing takes its gap with it. At that narrowest card with Previous and Next, all three can't fit: "just now" takes 45px, which leaves 13.5px for the name, so "Me" reads "M…". I chose to cut the name, as the rule asks. With a single thread (no Previous and Next), the same card shows "Me just now · Sent" whole beside the notice. I checked Chromium and Firefox, light and dark. Hand-written lines (`git diff --numstat origin/main`): +23 / −4 in `annotation-chrome.css`, +54 in tests. `test_a_card_s_head_row_cuts_the_name_before_the_time` is new and fails on the base with the time cut. > _This was written by Claude Code on behalf of max-sixty_ 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 user picked option A on the
web-dev-gapspage ("Message annotations"): a thread's held news belongs on the thread's head line, not in a message head.What was there. While a thread open in the floating panel held news (replies, edits, reactions or a resolve that arrived while the user wrote), its notice stood at the end of the first message's head in a 5rem slot, so it read "2 new rep…". On a margin card the notice lay over the end of the message head beside the card's actions, covering the time.
What replaces it.
parts.news(key, outlet)(module-annotations.md). A presentation that names none, such as a package's conversation reader or On's ask cards, keeps the notice at the end of the first part's head; the 5rem room is now kept only on heads that hold the notice. Each thread's head draws its own outlet (litkeyed), so walking to the next thread never shows the previous thread's notice in its head.max(40%, 5em)), and the time gives way first.What was deleted. The margin card's
.lf-margin-thread-newsoverlay cell and its rule; the 5rem head room on panel message heads; "N of M"'s own auto margin, which moved to the facts group it now shares with the notice.The New reply pill and the old Threads panel (docked panel,
thread-card.js's head overlay and#retainHeaderSlot) are unchanged.Hand-written lines (
git diff --numstat origin/main, excluding the kernel and generated sheets): +117 / −45 in source, +2 / −1 in the reference, +81 / −3 in tests.test_held_news_reads_whole_on_the_thread_s_head_lineis new; the floating panel's held-news checks read the notice in the head, and the margin card's news test checks it stands whole in the head row.