Repository navigation
Conversation
Scratch trial measuring what it takes to move where margin rows stand out of
core. A page or package names the rail with `placeMarginRail(place)`, where
`place({column, shell})` returns `{edge, side}` or null; by default the rail
hangs `--lf-rail-hang` right of the column, as before. Core keeps every
per-row rule (posture, packing, pins, records) and reads them against the
rail's side instead of the column's right: a block's reach into the rail, the
notes beside it, the step back inside the shell, a bounded region's frame, the
first row's rest spot, and the resting comment box.
A pass drops its seating records when the rail's answer moves, since a
placement can read boxes the pass's observers don't watch.
…n't check or move
leaf-agent
previously approved these changes
Nov 16, 2026
# Conflicts: # browser/AGENTS.md
leaf-agent
previously approved these changes
Nov 16, 2026
#6237 removed the margin's note rows, so the rail no longer reads notes on its side: rowPlacement drops `noted`, the layout pass its notes reading, and module-annotations.md its mention of layout-note asides.
leaf-agent
previously approved these changes
Nov 17, 2026
Since #6224 a page's own button takes Leaf's face by element, and stamping refuses one that writes the runtime's lf-btn class, which failed the site build on the feature gallery.
leaf-agent
previously approved these changes
Nov 17, 2026
leaf-agent
approved these changes
Nov 17, 2026
Owner
Author
|
Closing: max-sixty chose to keep the rail as main has it. This adds a public name for placing the rail while Leaf's own rail stays in core, and the longer-term direction, #6314, has a widget outside core present margin items in any design, which would make
|
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 page whose layout keeps its margin somewhere other than right of the column can now say where.
placeMarginRail(place)registers a function that Leaf asks for{edge, side}ornull, given the column's prose box, the shell's edges and the rail's width and hang. Leaf's own rail is now one such placement. Every rule about a single row (rail or pin, packing, a pin's seat) stays in core and reads the rail's side where it read the column's right.What the diff doesn't show:
copens it); and a marker's preview opens over the column's words. On a page whose only room is on the left, the card and the resting box do stand on the rail's side. The roomdata-rail="right"gives up and the window width at which a thread opens as a card also still assume the right.layout-noteasides, and it doesn't check that the room is wide enough. The reference says both.layoutChangedalready do that, so the reference asks a module that moves its own strip to calllayoutChanged, and the browser test moves its strip by a change Leaf doesn't hear.To try it, press Move the rail in the feature gallery's Margin entries scenario.
max-sixty chose this on a decision page, over keeping the rail fixed (my advice) and over a side named in
data-rail. A fresh reviewer's two passes are folded in.Tests: the runtime's unit tests, the type check, the gallery's page check, render gate and axe sweep, and the 65 margin and commenting browser tests that hold this code.