Skip to content

Stand a panel thread's ✓ and ✕ on its first line, with ‹ back before its title - #4878

Merged
max-sixty merged 14 commits into
mainfrom
thread-card-back-alignment
Nov 1, 2026
Merged

max-sixty merged 14 commits into
mainfrom
thread-card-back-alignment

Conversation

@max-sixty

@max-sixty max-sixty commented Nov 1, 2026 •

Copy link
Copy Markdown
Owner

The floating panel's thread view loses the row of controls between a thread and its reply. A view's first line now holds ‹ back to Threads before the title, then the thread's held news, Next unread or Show on page, ✓ and ✕, and the reply sits right under the last message, set off from it by the dim hairline that already stood over a list's tabs. The card is 40px shorter. The maintainer chose this layout in a playground on 2026-10-31 and kept the leaf in the reply's row.

This reverses the 20 October decision that stood a view's controls at its foot. The floating-panel.js header's Opened record and browser/AGENTS.md ("A box's controls stand on an edge the box holds as its content changes") now say how the panel keeps them still instead.

What each view shows

  • A thread: ‹ shows no words; its tooltip and accessible name say "Back to Threads". The title starts 22px right of the messages' edge to clear it and gives way first when the line is short.
  • All pages: its ✕ stands on its first line, beside its name, as a thread's does.
  • Threads and On me: ✕ stays at the end of their tabs at the foot. Their name is the tab, so a first line would hold ✕ alone. While a search holds the field, the list's ✕ keeps its room hidden, so the search press beside it stays under the pointer.
  • The hairline: one rule draws it over a list's tabs, or over the reply row under any view with no tabs, such as a thread or All pages.
  • The fold mark waits while a view is open, since ✕ holds that corner; the leaf's menu and . still fold the panel.

Holding the first line under the pointer

The panel stands on the window's foot and grows from its top, so its first line moves whenever the view's height changes. A press on any control on that line holds the view's height (holdThread) until the user's next turn. Resolve opens the next thread at the height the resolved one stood at, so ✓ stays under the pointer through repeated Resolves. A longer next thread scrolls inside that height, and a shorter one leaves room under its last message. Held news opened from the first line shows inside the held view, scrolled to the first message it released. Only an answer the user is waiting for still grows the view, carrying the first line up with it.

On a phone

The head line has two parts: the name (‹, the title and the thread's held news) and the presses, ending in ✕. The title gives way first, and held news arriving then takes the rest of the title and shortens to "2 new" or "+2". Where the presses don't fit beside ‹, as at 300px beside Next unread and Show on page, they wrap together to a line of their own under the name, right-aligned, as a list's presses already do beside its tabs. The news stays in the name's part, so its arrival never moves them. Next unread keeps its words, since its ↓ is already Next match's symbol.

Tests

New or changed behaviour the tests protect:

  • Resolving twice in a row leaves ✓ under the pointer in every frame of the move.
  • A press on held news keeps every press on the first line in place and brings the first held reply into sight.
  • Threads' search press stays put as search opens, with the list's ✕ hidden.
  • On a 300px touch screen, held news gives way before ✕, and nothing on the first line overflows the card; with Next unread, the presses take a line of their own under the name, ✕ last and inside the card.
  • The line of new threads over Threads starts on the words' edge.
  • An answer growing a thread carries its first line up with it.
  • The way back is found by its name, "Back to Threads", rather than its words, which moves one line in several browser test files.

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

…irst line

The row of controls between a thread and its reply in the floating panel is gone,
as the user chose on 31 October. A view's head line now holds the way back, a ‹
alone before the name whose tooltip names the list it returns to; the name; a
thread's held news, Next unread, Show on page and Resolve; and last Close, in the
top-right corner of every view. Threads and On me keep their tabs at the foot and
put Close on a line of its own at the top right, as does All pages, whose Close
stood in the row's seat. The seat now holds only a search's or a stance's way out.

The panel grows from its top, so the head line moves with the view's height.
Resolve's move to the next thread and Next unread hold the view's height as they
act (`holdHead`), so each stays under the pointer for the next press, until the
user's next turn. The fold mark that rides the top-right corner waits while a view
is open, since Close holds that corner.

Behaviour the tests now protect differently: Close on a list rises with the list's
top rather than standing at its foot; an answer growing a thread carries its presses
up with its name; Next unread into a closed summary holds the view rather than
growing it; the way back is found by its name, "Back to Threads", rather than its
words. A new test checks Resolve stays under the pointer as the next thread opens.

This reverses the 20 October decision that stood a view's controls at its foot; the
header's **Opened** record and browser/AGENTS.md, "Stability", say so.
# Conflicts:
#	browser/AGENTS.md
#	browser/runtime/floating-panel.js
#	dist/kernel/kernel.json
…d-line press

A list in the floating panel (Threads, On me) has no visible name, so standing its
Close on a head line drew a line for ✕ alone, which browser/AGENTS.md ("A control
takes only its own room") rules out and which read as a missing name. A view's Close
now ends the line its presses stand on: a list's tabs at its foot, as before this
branch, waiting while a search's ✕ ends the row; a thread's or All pages' head line
otherwise.

The hold that keeps a thread's head line under the pointer was one call per control
(`holdHead` for Next unread, a captured height for Resolve), the pattern the module
records as rejected. One capture listener on the head line now holds the view for a
press on any of its controls. News the user opens there still grows the view to show
it, as the user chose on 14 October; a press on the name holds nothing.

On a phone, Next unread stands as its symbol alone, as a search's mode does, so the
thread's name keeps about 114px beside Next unread, Show on page, Resolve and Close
rather than about 58px (Firefox, 390px, touch).

Behaviour the tests now protect: a list's Close stays put at its foot as the list
grows (back to the base assertions); Resolving twice in a row leaves Resolve under the
pointer in every frame of the move; opened held news is in sight in the view.
# Conflicts:
#	browser/AGENTS.md
#	browser/runtime/floating-panel.js
#	dist/kernel/kernel.json
… still

A second review of the head-line hold found three things wrong with the last commit.

Opened news no longer grows the view. The exception let the notice's press carry
Resolve and Close up from beside it, and it showed the news only where the view could
still grow: a thread Resolve had opened at the resolved one's height, or one at the
view's cap, left the news below the fold. The previous commit message attributed the
growth to the user's choice of 14 October; that choice was the awaited answer growing
the view, and "news they open grows the view" dates from #2781, when the notice stood
at the foot. A press on the notice now holds the view like any head-line press, and
lands as an opening does, at the turn the user comes back for (`arriveAt`,
`showReturnTurn`), so the first reply it held comes into sight.

A list's Close keeps its room while a search holds the field, hidden as spent Next
unread is, so the search press beside it stays under the pointer rather than sliding
right by Close's width. Main also drops Close there; this keeps its place.

Next unread keeps its words on a phone. Its ↓ alone broke browser/AGENTS.md's rule
that an action shows one symbol or one word wherever Leaf offers it, and ↓ is already
Next match's symbol.

Tests: the held-news press keeps every head-line press in place and brings the first
held reply into sight (fails without the landing); Threads' search press stays put as
search opens.
…on a phone

A third review pass found two more problems with the held-news press.

The notice's press landed at the thread's first unread message (`showReturnTurn`), so
news that made nothing unread, a reaction, a summary folding messages or a resolve,
scrolled the view to its end, away from where the change stood; and a thread with an
earlier unread reply landed there rather than on what the press showed. The press now
notes the messages drawn before it, and once the reader draws what the notice released
the view brings the first message it showed into sight; news that changed messages in
place shows in place.

On a phone the head line's name was the only thing that could give way, so with Show
on page, Next unread and held news the line overflowed and the card's clip cut off
Close (45px at 390px under a finger). The name now gives way first, and once it is gone
the news takes its short form ("2 new", "+2"), as the notice already does in a phone's
margin card. The new test fails without the change: Show on page, Resolve and Close
move as the news arrives.
# Conflicts:
#	browser/styles/floating-panel.css
#	dist/kernel/kernel.json
… under

The panel's thread view lost the row of controls between its messages and the
reply field, and with it the line that marked where the thread ends. Max asked
for a dim divider there. The panel already draws one: the hairline over a list's
tabs, inset as far as the words. That rule now covers the row too whenever the
open view has no tabs, so a thread, All pages and the other tabless views stand
over the same line, and a list keeps its one line over its tabs.
# Conflicts:
#	dist/kernel/kernel.json
# Conflicts:
#	dist/kernel/kernel.json
# Conflicts:
#	dist/kernel/kernel.json

@leaf-agent leaf-agent left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The thread header loses its Close control on a narrow touch screen when Next unread is present.

Comment thread browser/styles/floating-panel.css Resolved
# Conflicts:
#	browser/runtime/floating-panel.js
#	dist/kernel/kernel.json
#	dist/kernel/leaf.js
…eside ‹

Review found Close cut off on a narrow phone: at 300px under a finger, a thread
offering Next unread and Show on page needs ‹, Next unread, Show on page, Resolve
and Close on its head line, which overflowed the 280px card by about 50px once the
name had given all its room, so Close stood past the card's edge.

The head line now has two parts: the name (‹, the title and the thread's news) and
the presses, which end in Close. The name takes the room the presses leave and keeps
at least ‹'s, and where the presses don't fit beside it they wrap, together, to a
line of their own under the name, at its end, as a list's presses already do beside
its tabs. The news stands in the name's part, so its arrival never sends the presses
to that line; it still gives way as before, the title first, then its short form. At
desktop widths nothing moves: the Firefox stills of a thread and of Threads are pixel
for pixel the same.

A list's name is a heading only assistive tech reads, so its part takes no room
(`display: contents`), and the line of new threads over Threads still starts on the
words' edge.

Tests: a new phone case with Next unread checks every press stays inside the card on
one line under the name, Close last, and fails with the head kept to one line. The
Threads test now checks where the line of new threads starts, which the first draft
of this change broke. The edge test no longer expects the head's words on the
messages' edge, since a thread opened over Threads puts ‹ there, on the quote's rule,
with its name after it.
leaf-agent
leaf-agent previously approved these changes Nov 1, 2026
# Conflicts:
#	dist/kernel/kernel.json
@max-sixty
max-sixty merged commit fd4d7b9 into main Nov 1, 2026
3 of 4 checks passed
@max-sixty
max-sixty deleted the thread-card-back-alignment branch November 1, 2026 06:06
max-sixty added a commit that referenced this pull request Nov 4, 2026
… focus ring, and offer reactions on the margin card (#5280)

Three changes to how the floating panel and the margin card show a
thread, from the user's review of the panel's thread view.

- After a Resolve in the panel, the next thread opens at its own height.
Since #4878 the panel opened it at the resolved thread's height, so ✓
stayed under the pointer, and kept that height until the user's next
reply. A longer next thread showed cut off behind a scroll, even after
`r`, which aims at nothing. On 31 October the user had said a Resolve's
next thread may land wherever; the hold was built later that day and
recorded in the panel's header as their choice. This deletes the hold,
and the header now records the user's words and the reversal. When the
next thread is a different height, ✓ moves with the head line.
- The panel's thread view wears no focus ring when keys bring focus to
it, and keeps the fade at a scrolled thread's top edge (the user's
choice, 3 November). The panel's other views keep the stage's ring where
a key lands on the view itself, as an empty Threads does by `g T`. The
CSS comment records the choice, a TODO that how Leaf draws focus rings
is still being decided, and that it departs from the visible focus
`browser/AGENTS.md` asks of a scroller.
- The margin card offers reactions on a message, as the panel does.
`threadReading` passed reactions only to the `outlet` surface, a
condition carried over with no record of why. Every caller then passed
`message.reactions`, so `messageReading` reads them from the message and
the option is gone.

Tests: `test_resolve_opens_the_next_thread_as_tall_as_it_holds` replaces
the test that asserted ✓ stayed under the pointer, and fails with the
hold put back. The focus test now asserts no ring on the thread's view
after Escape from the reply, where it asserted the stage's ring. New
tests hold the stage's ring on an empty Threads, and the card's
reactions by `e` and by the reply's control; the reactions test fails
with the old rule. `pnpm run check:browser`, `pnpm run test:runtime`
(763 pass) and the focused browser tests pass, and Firefox probes
compared each behavior against the base.

> _This was written by Claude Code on behalf of max-sixty_
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