Skip to content

Hold a choose group to the reading measure as one block - #1198

Merged
max-sixty merged 2 commits into
mainfrom
options-card-edge
Sep 26, 2026
Merged

max-sixty merged 2 commits into
mainfrom
options-card-edge

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

On a wide page, lf-options cards drew their dividers and radio marks 90–120px short of the card's border: a members widget defaults to x-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-measure gains text: a members widget whose members are the cells of one block keeps the measure as a whole, and its members fill it. lf-options declares it. At 1440px the card is now level with the prose and every cell reaches its frame; column pages don't change. Schema, $keys text, glossary and docs/registry.html follow.

Test: test_a_choose_group_on_a_wide_page_draws_its_cells_to_its_own_frame.

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

🤖 Generated with Claude Code

max-sixty and others added 2 commits September 25, 2026 15:34
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]>
@max-sixty
max-sixty merged commit 8b7bf0b into main Sep 26, 2026
5 checks passed
@max-sixty
max-sixty deleted the options-card-edge branch September 26, 2026 00:13
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]>
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