Repository navigation
Hold a choose group to the reading measure as one block - #1198
Merged
Merged
Conversation
On a page wider than the column (a wide page, or an lf-grid cell), an lf-options group drew its frame across the whole cell while each option stopped at the reading measure, so every card's mark and every hairline between options ended 100px or more short of the frame's right edge. The cause is the measure classification. lf-options is made of members, and an undeclared members element is a `group`, which passes the measure through to what it holds. Its members are text, so each option was capped at the measure while the group, uncapped, took the frame's width. The frame, the dividers and the marks belong to the options, so the group and its cells must stand at one width. x-measure gains a `text` value: a members element whose members are the cells of one block it draws declares it, keeps the measure as a whole, and its members fill it. The theme now exempts only `surface` and `group` from the cap, and lf-options declares `text`. Inside a surface (a specimen) the measure is `none`, so nothing changes there, and nothing changes in a column page. The group is also no longer uncapped after upgrade having been capped at first paint. New test: test_a_choose_group_on_a_wide_page_draws_its_cells_to_its_own_frame covers cards and rows in a grid cell and cards straight on a wide page. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
approved these changes
Sep 26, 2026
max-sixty
added a commit
that referenced
this pull request
Sep 26, 2026
The render check already renders at 1200px and 540px and sweeps sideways overflow from 360px to 1200px, so the TODO item and #19's render-check line now name what reads one width: the readings the arrangement eval asked for. #19 also drops the lf-diagram and lf-options items, which #1196 and #1198 landed. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
max-sixty
added a commit
that referenced
this pull request
Sep 26, 2026
On a wide page, an `lf-agent` row in a goal tree ended its hairline short of the rows beside it: the goal rows (`lf-task`) declare `x-measure: group` and fill their frame, while the worker, undeclared markup, was text and kept the 720px measure. In the Command Hub example at 1440px the lead's row stopped 31px short of the panel and the goals' chips; a worker under a goal of an `lf-tasks` tree straight on the page stopped 500px short. The fix is on the worker rather than on `lf-command`. Holding the command to the measure (`x-measure: text`, as #1198 did for `lf-options`) lines its rows up only by pulling every goal row 109px off the panel's edge, and leaves `lf-tasks` as it was, since the worker stands under goals in both trees. `lf-agent` now declares `group`, the same as its sibling `lf-task`: nothing else on the example page moves, and a roster, which is a surface already, is unchanged. The `$keys` text for `group` names the row case, and `docs/registry.html` follows. Test: `test_a_worker_row_on_a_wide_page_reaches_the_frame_its_goals_reach`. > _This was written by Claude Code on behalf of max-sixty_ 🤖 Generated with [Claude Code](https://claude.com/claude-code) 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.
On a wide page,
lf-optionscards drew their dividers and radio marks 90–120px short of the card's border: a members widget defaults tox-measure: group, which passes the reading measure to its members without taking it, so the card filled its container while each option stopped at 720px. A blind judge flagged it on every revised Leaf document in the arrangement eval.x-measuregainstext: a members widget whose members are the cells of one block keeps the measure as a whole, and its members fill it.lf-optionsdeclares it. At 1440px the card is now level with the prose and every cell reaches its frame; column pages don't change. Schema,$keystext, glossary anddocs/registry.htmlfollow.Test:
test_a_choose_group_on_a_wide_page_draws_its_cells_to_its_own_frame.🤖 Generated with Claude Code