Skip to content

Give every list that groups its rows the sticky band - #5429

Merged
max-sixty merged 9 commits into
mainfrom
on-me-paved-road
Nov 5, 2026
Merged

max-sixty merged 9 commits into
mainfrom
on-me-paved-road

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

On me and On Claude group their rows under a tinted band that sticks to the top of the list while the group scrolls under it (#5318). Threads, Page Map and the command reference grouped theirs under a muted line that scrolled away with its rows. This moves the band into the shared list style, so every list that groups its rows wears it, as chosen on 4 November.

What the reader sees

  • Threads: the open threads stand under "Open 2", and the resolved ones fold under "Resolved 1", as before. A search lists its matches under "Matches". Each band counts the threads the page holds in that state, as the tab does, so the numbers agree while the list holds a moved row behind its notice.
  • Page Map: each location's name is a band across the dialog that sticks as the list scrolls. A long name now ends in an ellipsis on one line, where it wrapped to two.
  • Command reference: each section's name is a band. Every row stays under the one listbox parent, so a section has no box of its own to end at, and a later band slides over the stuck one instead of pushing it off.
  • On me and On Claude: unchanged at desktop, apart from On Claude's lines, which stand 4px lower. A band now keeps a 4px gap below it, because the focused first row's wash met the band and the two read as one block. On me's cards trim their padding by the same amount, so they stay where they were.
  • Touch: under a finger every band takes the aim floor's height, 44px, since a band that folds its group is a press.

How it works

The band is .lf-rows-group > .lf-rows-head in browser/styles/components/controls.css, with no new class, so a heading outside a group's box (a tab strip's group label, a trace's Moments, a card's place line) stays a plain line. The comment there holds the design and the alternatives it rejected, moved from floating-panel.js.

A band sticks at the --lf-top slot it meets and hands its rows that slot plus its own height (--lf-rows-slot, --lf-rows-band), so a row reached by the keys lands clear of the band, and geometry.js's reading of what the headers cover counts it. Each scroller says how far its band reaches past the rows to its edges (--lf-rows-bleed) and which ground the band's tint mixes into (--lf-ground). Page Map restarts the slot for its list through data-lf-scroll. The reference resets the slot by hand, since a tab stop on its results would sit between the search field and its listbox.

floating-panel.js draws every grouped list through one bandedGroups. Threads keeps its .lf-fp-list wrapper, which the margin tests read.

Testing

test_a_band_names_the_group_passing_under_it (tests/browser/test_chrome_contracts.py) scrolls Threads, Page Map and the reference in Chromium and Firefox, checks that a band stands at the list's top across its full width, then walks up the rows by ArrowUp and checks that no focused row stands under a band. With the slot hand-off removed, all six cases fail. The panel tests that read the old .lf-fp-on-group selector now read the band, and the Resolved-news test checks both bands' counts. Those tests and the band test pass on the branch merged with main.

Before/after stills in both schemes and in Firefox went to the maintainer on a Leaf page. They show On me and On Claude's desktop states with no pixel changed.

Left as they are

  • In Page Map, a location with one row still gets a band, so a map of many small groups reads as stripes.
  • Threads shows the Open band even when nothing is resolved, which repeats the tab's count.

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

In the dark scheme each status tint was lighter than the paper, as a card and the
panel are, and tuned on the paper alone. On a card it stood 4.5 apart from its
ground (OKLab, ΔE × 100) and on the panel 3, so the "recommended" tag in On me
lost its pill and read as green words. The light tints stand 5 to 6 apart on
every ground.

The dark ok, warn and danger tints now take more colour, standing at least 5
apart from the paper, a card and the panel's ground, about as far as the light
tints stand. Each moved about 2 from its old value; the light values and the
diff and highlight tints are unchanged. The tokens' header records the rule.
The band On me's groups wear now lives in the shared list style (`.lf-rows-group` in
controls.css), and Threads, Page Map and the command reference wear it. Threads lists its
open threads under Open, and Resolved is a band; a search lists its matches under
Matches. Page Map's groups and the reference's sections stick as the list scrolls.

Page Map's group names take one line, cut where the band ends, where they wrapped to
two. A band keeps a 4px gap below it, since the first row's wash met the band and the
two read as one block, so On Claude's lines stand 4px lower under a band; On me's cards
stand where they did. Under a finger every band is the aim floor's height, since one
that folds its group has no room for a reach.

A band sticks at the slot it meets and passes the slot plus its height to its rows
(`--lf-rows-slot`, base.css at `--lf-top`), so a landing clears it on any surface. The
record of the design and what it rejected moves to controls.css with it.
…eader

Threads' Open and Resolved bands count the threads the page holds in that state, as the
tab does, so they agree with it while the list holds a row behind its notice. A band
sticks at the slot it meets. Bands take the aim floor's height under a finger.
# Conflicts:
#	tests/browser/test_chrome_contracts.py
leaf-agent
leaf-agent previously approved these changes Nov 5, 2026
@max-sixty
max-sixty merged commit 0e61e7d into main Nov 5, 2026
4 checks passed
@max-sixty
max-sixty deleted the on-me-paved-road branch November 5, 2026 08:16
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