Skip to content

Stand the user's messages on the reply box's ground, each owning half its gaps - #7352

Merged
max-sixty merged 3 commits into
mainfrom
whose-words
Nov 27, 2026
Merged

max-sixty merged 3 commits into
mainfrom
whose-words

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

In a thread's views (the margin card, the panel's thread view and a seat in a widget), the user's messages now stand on the ground the reply box takes while they type (--lf-card), and Claude's stand on paper. Each message's ground reaches halfway into the gap on either side of it and out to the view's sides, so no paper stands between messages. Each name wears its party's colour. Max picked these settings in a playground on a Leaf page.

Each message paints this ground as a border-image ring outside its box, so no word, box, scroll extent or landing moves. I probed this against main in Firefox across 14 card, panel and seat states. Holding the gaps as padding instead also made the gaps hoverable, but it moved where a returning reader lands by 12px.

Where to look:

  • Dark panel: Claude's messages now rest on paper there, which is darker than the panel's surface. Otherwise the user's messages would read darker than Claude's.
  • Seats on a white widget, such as the diff: Claude's messages now stand on paper bands.
  • The card's heads' line: it takes the user's ground through a :has() on data-lf-beside-actions.

Tests: the selected thread-layout, fold, panel-fit and card-face browser tests pass, and the font and theme-token checks pass.

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

… its gaps

The user picked this in the Whose words playground: in a thread's views, the user's
messages stand on the ground the reply box takes while they type (--lf-card) and
Claude's on paper; each message's ground reaches halfway into the gap on either side
of it and out to the view's sides, so no paper stands between messages; and each name
wears its party's colour, the user's --lf-ok-ink and the agent's --lf-accent.

A message paints its halves of the gaps and its sides as a border image, a ring
outside its box, so every word, message box, scroll extent and landing stays where it
was on main (probed in Firefox across 14 card, panel and seat states). Holding the
halves as padding, tried first, also put the pointer over a message in every gap, but
moved every box a landing measures: a returning reader's card landed 12px lower.

Claude's messages and working step now rest on paper in every view, as they did in
the margin card, so the user's read the lighter in both schemes; in the dark panel and
in a seat on a white widget they had taken the host's ground, which put the user's
darker there or left the two alike.

On a margin card the heads' line takes the user's ground while their head holds it
(the first message at the top, later the first beside the actions), so their ground
runs edge to edge there, under the fade, and in the room their head leaves as the
next message pushes it away. A seat's messages paint out to its frame but not into
its top padding, where the frame's corners curve. A forced palette drops the painted
grounds. The names' colours apply in a thread's views only, as the grounds do.
leaf-agent
leaf-agent previously approved these changes Nov 27, 2026
…ssage by its place

Nested under the selector list, the right-to-left, first and last rules matched as a list with no key before it, which test_a_rule_s_subject_names_a_key refuses since Chromium then matches them against every element it restyles. Written flat under the transcript, each keeps the specificity and elements it had.
leaf-agent
leaf-agent previously approved these changes Nov 27, 2026
# Conflicts:
#	browser/runtime/annotations/annotation-overlay/annotation-chrome.css
@max-sixty
max-sixty merged commit 5792b69 into main Nov 27, 2026
6 checks passed
@max-sixty
max-sixty deleted the whose-words branch November 27, 2026 17:59
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