Repository navigation
Place column pages and sheets with one margin formula - #1119
Merged
Merged
Conversation
A column page and a sheet sized their margins with separate rules: the column centred in the shell less its strips and grew exhibits symmetrically; the sheet had its own gutter (the wider of a clamp and either strip); and a standing sidebar restated room, shift, growth split and space bound for column pages only, twice (with and without a sidenote), fenced off from sheets. `main` now states one reading for both. A page is a measure (--lf-page-measure: the column, --wide or --sheet-max) with a pad each side (--lf-page-pad: the column's 24px, or the sheet's clamp); each side's gutter is the wider of the pad and its strip, the strip keeping the column's pad from the window's edge until the measure no longer fits beside it. From that come the room, the page's width, its shift, and the room free each side of it (--lf-free-l, --lf-free-r), which every wide block's growth now reads. A lone sidebar restates only the shift (gutters first) and that nothing may grow into a sticky box's side; the contents map says what is free beside it. The page's width and free lengths are registered, so they resolve once on main rather than wherever a widget reads them: left as expressions, their 100cqi measured the nearest size container, and a board in a workspace pane grew out of it. The rail's yield bound is stated in those lengths rather than as 100% of whatever box reads it, which a diagram's spacers re-resolved against the diagram's own width. Behaviour: standalone exports of five examples (three column pages, two sheets) render byte-identically at 1440 and 1200. A sheet with a strip wider than its pad now keeps the pad on the other side rather than matching the strip on both, so it is a few pixels off centre instead of that much narrower. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
approved these changes
Sep 24, 2026
max-sixty
added a commit
that referenced
this pull request
Sep 24, 2026
main carries sheet-followups as #1113 and one margin formula as #1119, so the merge takes main's tree and reapplies this branch's own changes: the page-tab theme fixes and the draft page. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
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 column page and a sheet sized their margins with separate rules: the column
centred in the shell less its strips and grew exhibits symmetrically; the sheet
had its own gutter (the wider of a clamp and either strip); and a standing
sidebar restated room, shift, growth split and space bound for column pages
only, twice (with and without a sidenote), fenced off from sheets.
mainnow states one reading for both. A page is a measure(--lf-page-measure: the column, --wide or --sheet-max) with a pad each side
(--lf-page-pad: the column's 24px, or the sheet's clamp); each side's gutter is
the wider of the pad and its strip, the strip keeping the column's pad from the
window's edge until the measure no longer fits beside it. From that come the
room, the page's width, its shift, and the room free each side of it
(--lf-free-l, --lf-free-r), which every wide block's growth now reads. A lone
sidebar restates only the shift (gutters first) and that nothing may grow into
a sticky box's side; the contents map says what is free beside it.
The page's width and free lengths are registered, so they resolve once on
main rather than wherever a widget reads them: left as expressions, their
100cqi measured the nearest size container, and a board in a workspace pane
grew out of it. The rail's yield bound is stated in those lengths rather than
as 100% of whatever box reads it, which a diagram's spacers re-resolved
against the diagram's own width.
Behaviour: standalone exports of five examples (three column pages, two
sheets) render byte-identically at 1440 and 1200. A sheet with a strip wider
than its pad now keeps the pad on the other side rather than matching the
strip on both, so it is a few pixels off centre instead of that much narrower.
🤖 Generated with Claude Code