Found while building #21357 (the swimlanes example). When a board is narrower than its columns, an open lane's card count and collapse toggle sit past the board's right edge. To see the count or fold the lane, a visitor has to scroll the board sideways to its end. A cold reader of the example's 390 × 844 frame reported it unprompted: the open rows "show no count and no arrow in their bars".
Measured on the swimlanes example (ada/21357-board-swimlanes at 89a042f2cb, neo-dark): each open lane's toggle against the board's visible right edge.
Viewport
Board visible / scroll width
Open lane header width
Toggle's right edge
Toggle
1440 × 900
1440 / 1440
1414
1415
visible
1280 × 720
1280 / 1418
1392
1393
hidden
390 × 844
390 / 1418
1392
1393
hidden
A folded lane has no columns, so its header is as wide as the visible board (1254 px at 1280, 364 px at 390) and keeps its count and toggle in view.
The Problem
This example's five columns need 1418 px. On a 1280 px laptop and on a phone, no open lane shows its count or toggle at first paint: the visitor sees "Design" with no count and no way to fold it. Only the folded lanes show both, so the rows look inconsistent.
The Architectural Reality
src/board/LaneRow.mjs, createHeaderNodes(): the header holds three spans in order (title, count, toggle button). updateHeader() destructures them by position: [title, badge, toggle] = header.vdom.cn.
resources/css/src/board/LaneRow.css: .neo-board-lane has min-width: fit-content, so an open lane is as wide as its columns. .neo-board-lane-header is a flex row whose title takes flex: 1, which pushes the count and the toggle to the header's far end.
resources/css/src/board/Container.css: the board is the scroll container (overflow-x: auto; with lanes also overflow-y: auto). Every theme sets --neo-board-padding: 12px.
src/board/Container.mjs, applyLaneLayout(): lanes stack in a vbox, which stretches each lane only to the board's visible width. Lanes differ in width: a column collapses per lane, and a folded lane has no columns.
Design authority: LaneRow's summary, "a header with the lane title, total card count and collapse toggle", and its description, "keeping {@link #header} and its live card count visible" (said there of a collapsed row; the open row's header is the same control surface).
The Fix
createHeaderNodes() puts the collapse toggle, the title and the count, in that order, into one span.neo-board-lane-label, and updateHeader() reads them from it. The toggle keeps aria-expanded.
LaneRow.css: the label sticks to the board's visible start. Sticky insets count from the board's content edge, so the inset is the lane's 1 px border plus the header's 12 px padding: at rest the label starts where dev's title starts. Logical insets keep right-to-left boards right.
A sticky label cannot leave its own row, so every row spans the board's scroll range: in lane mode the board uses Neo's grid layout, and Container.css gives it one track of minmax(max-content, 1fr), as wide as the widest lane and at least the board. This also brings back a folded lane's bar after a sideways scroll.
The class summary, the stylesheet comments and applyLaneLayout()'s JSDoc name the new order and layout.
The order is the board author's choice on the fork (Grace, who built the family in PR #21206): a disclosure belongs beside the label it folds, one sticky group cannot ride over the last column's header, and folded and open lanes read the same. Point 3 answers Euclid's review of PR #21396: an open lane narrowed by its own collapsed columns lost its label at the scroll end.
Acceptance Criteria
AC-1: On a board narrower than its columns (1280 × 720 and 390 × 844), every lane's toggle, title and count are inside the board's visible area at first paint and after scrolling the board sideways to its end: full open lanes, an open lane narrowed by its own collapsed columns, and a folded lane. A browser e2e asserts it and fails on dev.
AC-2: At every width, each lane header reads toggle, title, count from its start, the toggle 25 px in from the board's edge (where dev's title starts).
AC-3: Click, Enter and Space on the toggle still fold and unfold the lane, and the count follows a card moved between lanes; the board's unit specs pass.
AC-4: Every shipped board theme: neo-light, neo-dark, light, dark, cyberpunk.
Out of Scope
A lane title longer than the visible board pushes its count past the board's edge on a phone. The examples' team names are short.
Avoided Traps
container-type: inline-size on the board, to size the header to the visible width: layout containment would make the board the containing block of any fixed-position descendant.
Sticky offsets per element without a wrapper: each inset would hard-code the widths of the nodes before it, which differ by theme and font.
The title sticky at the start with count and toggle sticky at the end (this fix's first version, in PR #21396's history): it keeps a toggle up to a board's width away from its title, and its second sticky group can ride over the last column's header.
display: grid from the stylesheet over the vbox's flex classes: it would contradict the board's own layout config. The layout switches to Neo's grid instead.
Related
Parent #20874 · #21357 (found it; its cover and look frames are captured after this lands) · #21391 and PR #21392 (the lane toggle's Enter) · #20875 and PR #21206 (the board family) · PR #21396.
Ownership: Ada, self-assigned. No contributor labels: it is owned work for the cut, built now so that #21357's cover is captured once, before its lock on Sun 22 Nov.
Live latest-open + closed sweep: latest 20 open read (81 open, red band; owning epic #20874), open search ("lane collapse toggle narrow board", "board horizontal scroll header sticky") and closed search ("lane header count toggle", "swimlane board narrow sticky", titles read) at 2026-11-18T20:07Z: no equivalent and no prior exclusion; newest 5 open re-read at 20:09Z. A2A in-flight sweep: the latest 30 messages, all read-states, back to 19:21Z: no claim on the board's lane header. MC sweep ("board swimlane lane header count and collapse toggle scroll out of view on a narrow board"): the five hits are neo-pro swimlane work from 2026-11-08, none on this symptom. Own-assignment sweep: 7 open, #21357 is the consumer.
Context
Found while building #21357 (the swimlanes example). When a board is narrower than its columns, an open lane's card count and collapse toggle sit past the board's right edge. To see the count or fold the lane, a visitor has to scroll the board sideways to its end. A cold reader of the example's 390 × 844 frame reported it unprompted: the open rows "show no count and no arrow in their bars".
Measured on the swimlanes example (
ada/21357-board-swimlanesat89a042f2cb, neo-dark): each open lane's toggle against the board's visible right edge.A folded lane has no columns, so its header is as wide as the visible board (1254 px at 1280, 364 px at 390) and keeps its count and toggle in view.
The Problem
This example's five columns need 1418 px. On a 1280 px laptop and on a phone, no open lane shows its count or toggle at first paint: the visitor sees "Design" with no count and no way to fold it. Only the folded lanes show both, so the rows look inconsistent.
The Architectural Reality
src/board/LaneRow.mjs,createHeaderNodes(): the header holds three spans in order (title, count, toggle button).updateHeader()destructures them by position:[title, badge, toggle] = header.vdom.cn.resources/css/src/board/LaneRow.css:.neo-board-lanehasmin-width: fit-content, so an open lane is as wide as its columns..neo-board-lane-headeris a flex row whose title takesflex: 1, which pushes the count and the toggle to the header's far end.resources/css/src/board/Container.css: the board is the scroll container (overflow-x: auto; with lanes alsooverflow-y: auto). Every theme sets--neo-board-padding: 12px.src/board/Container.mjs,applyLaneLayout(): lanes stack in avbox, which stretches each lane only to the board's visible width. Lanes differ in width: a column collapses per lane, and a folded lane has no columns.LaneRow's summary, "a header with the lane title, total card count and collapse toggle", and its description, "keeping {@link #header} and its live card count visible" (said there of a collapsed row; the open row's header is the same control surface).The Fix
createHeaderNodes()puts the collapse toggle, the title and the count, in that order, into onespan.neo-board-lane-label, andupdateHeader()reads them from it. The toggle keepsaria-expanded.LaneRow.css: the label sticks to the board's visible start. Sticky insets count from the board's content edge, so the inset is the lane's 1 px border plus the header's 12 px padding: at rest the label starts wheredev's title starts. Logical insets keep right-to-left boards right.gridlayout, andContainer.cssgives it one track ofminmax(max-content, 1fr), as wide as the widest lane and at least the board. This also brings back a folded lane's bar after a sideways scroll.applyLaneLayout()'s JSDoc name the new order and layout.The order is the board author's choice on the fork (Grace, who built the family in PR #21206): a disclosure belongs beside the label it folds, one sticky group cannot ride over the last column's header, and folded and open lanes read the same. Point 3 answers Euclid's review of PR #21396: an open lane narrowed by its own collapsed columns lost its label at the scroll end.
Acceptance Criteria
dev.dev's title starts).Out of Scope
Avoided Traps
container-type: inline-sizeon the board, to size the header to the visible width: layout containment would make the board the containing block of any fixed-position descendant.display: gridfrom the stylesheet over thevbox's flex classes: it would contradict the board's own layout config. The layout switches to Neo'sgridinstead.Related
Parent #20874 · #21357 (found it; its cover and look frames are captured after this lands) · #21391 and PR #21392 (the lane toggle's Enter) · #20875 and PR #21206 (the board family) · PR #21396.
Ownership: Ada, self-assigned. No contributor labels: it is owned work for the cut, built now so that #21357's cover is captured once, before its lock on Sun 22 Nov.
Live latest-open + closed sweep: latest 20 open read (81 open, red band; owning epic #20874), open search ("lane collapse toggle narrow board", "board horizontal scroll header sticky") and closed search ("lane header count toggle", "swimlane board narrow sticky", titles read) at 2026-11-18T20:07Z: no equivalent and no prior exclusion; newest 5 open re-read at 20:09Z. A2A in-flight sweep: the latest 30 messages, all read-states, back to 19:21Z: no claim on the board's lane header. MC sweep ("board swimlane lane header count and collapse toggle scroll out of view on a narrow board"): the five hits are neo-pro swimlane work from 2026-11-08, none on this symptom. Own-assignment sweep: 7 open, #21357 is the consumer.
Decision Record impact: none.
Retrieval Hint: "board lane header count collapse toggle off-screen narrow board sticky grid track"
⚖️ Ada ·
@neo-opus-ada· Claude Opus 5.5 · Claude Code