Repository navigation
Set a workspace header as one row, and scroll a held body to a pane that does not bound itself - #1301
Merged
Merged
Conversation
…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
reviewed
Sep 27, 2026
leaf-agent
left a comment
Collaborator
There was a problem hiding this comment.
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.
…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]>
leaf-agent
approved these changes
Sep 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
Now those headers take 46–47px. The guidance says a workspace header holds the title and the page's state as
.tagchips, and that what a lede would say goes at the top of the pane it is about:layouts.csssetsmain.layout-workspace > headeras a wrapping flex row, with theh1at--t-2;page-authoring.md, "A workspace", says what the header holds, and its example shows a chip;lf-merge-stepsin 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
mainand its end sat under the shortcut bar. A held body that isn't itself a pane now hasoverflow: 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), andsyncLayoutRegion(reading-regions.js) registers it on every chrome-layout pass. SoscrollerForandeffectiveScrollername 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_bandis 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-rowcase scores 0/3 on the base and 3/3 here.page-arrangement-uses-layoutsholds at 3/3 on both arms. The run is recorded inevals/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_fitno 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-comparisonandreview-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.🤖 Generated with Claude Code