Skip to content

Set a workspace header as one row, and scroll a held body to a pane that does not bound itself - #1301

Merged
max-sixty merged 8 commits into
mainfrom
layout-survey
Sep 27, 2026
Merged

max-sixty merged 8 commits into
mainfrom
layout-survey

Conversation

@max-sixty

@max-sixty max-sixty commented Sep 27, 2026 •

Copy link
Copy Markdown
Owner

A workspace's header is now one row: the title at a heading's ordinary size, with the page's status chips beside it. The panes keep the rest of the window. A body whose pane doesn't bound its own height now scrolls as a whole instead of running under the shortcut bar.

Before, the header took the window's height before the panes did:

  • at 1000×800, alert-review's header took 196px, and its detail pane cut off the first option of the open question;
  • rust-sort's and wt-merge's headers took about 180px at 1200×800.

Now those headers take 46–47px. The guidance says a workspace header holds the title and the page's state as .tag chips, and that what a lede would say goes at the top of the pane it is about:

  • layouts.css sets main.layout-workspace > header as a wrapping flex row, with the h1 at --t-2;
  • page-authoring.md, "A workspace", says what the header holds, and its example shows a chip;
  • alert-review's lede moved to the top of its alert list, and its eyebrow is gone;
  • rust-sort's lede moved to the top of the source pane, and its two-column header CSS is gone;
  • wt-merge's lede moved to the top of the steps pane, above lf-merge-steps in a wrapper, so the widget's own paragraph rule doesn't hide it.

End room. A held workspace passes the window's height only to its body's direct cells. A pane inside a section of the body takes its content's height, so it ran past main and its end sat under the shortcut bar. A held body that isn't itself a pane now has overflow: auto, so it scrolls to that end. It is also a reading region of the Layout's own: layouts.css marks it (--lf-reading-region: layout), and syncLayoutRegion (reading-regions.js) registers it on every chrome-layout pass. So scrollerFor and effectiveScroller name the body for a pane it carries, and page steps and reading-place recovery move the box that actually scrolls. test_a_held_workspace_that_overflows_scrolls_its_end_clear_of_the_band is no longer xfail. It checks that the body is the pane's scroller, then scrolls the pane's end into view as a user would, and it fails without the fix.

Guidance eval. The new workspace-header-is-one-row case scores 0/3 on the base and 3/3 here. page-arrangement-uses-layouts holds at 3/3 on both arms. The run is recorded in evals/README.md.

Behaviour the tests pin moved:

  • test_a_pane_inside_a_plain_section_of_a_workspace_flows: the flowing pane's scroller is now the held body, not the page.
  • test_a_root_workspace_bounds_independent_regions_and_flows_when_it_cannot_fit no longer compares the workspace title's size or lede width with a wide page's. It checks that the title is at a heading's size and the status stands beside it, and its fixture's header is now a title and a chip.

Two regression fixtures, current-proposed-comparison and review-queue, still carry an eyebrow and a lede in their headers. Their v1 revisions change that lede, and the comparison is what they test, so they keep it, and their headers wrap onto a second line.

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

🤖 Generated with Claude Code

max-sixty and others added 7 commits September 26, 2026 23:43
…d render where it changes

The rail, the contents map, the first sidebar and the sidenotes each moved into the margin
at their own threshold: the rail by script, the others by container queries at 848, 1296
and 1536px that copied tokens and assumed the default column. `settleResidency`
(margin-layout.js) now reads the room beside `main` once a frame, admits the rail, then the
sidebar (or, with a fine pointer, the contents map's spine), then the notes, and writes
`data-lf-margin` and `--lf-shift` on `main`; the column Layout moves over by the shift and
the stylesheet keys every posture on the tokens.

The render gate sweeps to 1920px, finds each width where `data-lf-margin` changes and
renders the page there. The comment bar's lane above or below a passage starts from the
compact control's minimum rather than its first measured width, which a restored draft
widened.

Behaviour the tests pin moved: residents' thresholds are derived from the tokens, a note
hangs from 1152px with the column moved left, one more read of `main` per refresh, and the
render order includes the margin widths.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
# Conflicts:
#	skills/leaf/assets/layouts.css
#	skills/leaf/assets/theme.css
…and render only where the page's own residents change

Review follow-ups to the residency pass: a sidebar holding only the contents map
stands as the map rather than floating an empty box and moving the column; --map,
--sidebar and --note are registered lengths so a page may restate them in any unit; the
pass reads the offset the column stands at rather than the one it wrote; a resident
inside a box the page does not show needs no room; and the render gate leaves the rail
out of the widths it renders at, since the rail holds only Leaf's markers.

Tests that moved: the left-sidebar test's sidebar holds a line beside the map so it
still floats, and a map-only copy checks it takes no room; the contents-map test
expects a map-only sidebar not to float; the gate finds two margin widths on a sidebar
and note page; the note-strip test opens the view its note is in; SPILLING_PAGE is
65vw, which the sweep to 1920px no longer finds scrolling the page.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
… prettier hook

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…w hides

A sidenote inside a closed <details> still moved the column, because the pass asked
whether the note's parent rendered and the <details> does. The pass now asks whether
the resident itself renders, keeping one the page hides itself (the feature gallery
hides its sidebar until it stands in the margin), and a toggle anywhere asks for a new
reading. New test: a note in a disclosure takes no room while closed and hangs once
opened.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…hat does not bound itself

A workspace's header took the window's height before its panes: at 1000x800
alert-review's took 196px and cut the first option of its open question. The header is
now one row, the title at a heading's ordinary size with the page's status chips beside
it, and the guidance puts what a lede would say at the top of the pane it is about.
alert-review, rust-sort and wt-merge move their ledes into panes; their headers are
46-47px. A held body now scrolls as a whole, so a pane inside a section of it no longer
runs its end under the shortcut bar.

Tests that moved: the root-workspace test checks the one-row header instead of a wide
page's title size and lede width; the held-workspace end-room test is no longer xfail
and scrolls the pane's end into view. New eval case workspace-header-is-one-row: 0/3 on
the base, 3/3 here.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>

@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 held workspace body now becomes a scroller outside Leaf's reading-region model, and the moved wt-merge explanation is hidden on the live page. Both affect the paths this PR changes; details are inline.

Comment thread skills/leaf/assets/layouts.css Resolved
Comment thread examples/wt-merge.html Resolved
…e's lede above its steps widget

Review of the one-row header change: the held body became a scroller outside the
reading-region model, so scrollerFor and effectiveScroller named the page for a pane
inside a section while the body was what moved; page steps and reading-place recovery
missed it. layouts.css now marks a body that is not itself a pane
(--lf-reading-region: layout), and syncLayoutRegion registers it on every chrome-layout
pass. A body that is a pane keeps scrolling its own body. wt-merge's lede sat inside
lf-merge-steps, whose paragraph rule hid it; it now stands above the widget in a wrapper.

Tests that moved: a pane in a plain section of a workspace names the body as its
scroller; the end-room test checks that before scrolling to the pane's end.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@max-sixty
max-sixty merged commit 89d1fa8 into main Sep 27, 2026
7 of 8 checks passed
@max-sixty
max-sixty deleted the layout-survey branch September 27, 2026 09:19
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