Skip to content

fix: hold no Another option row or number in a closed options group - #5549

Merged
max-sixty merged 3 commits into
mainfrom
hover-ui-dimensions
Nov 5, 2026
Merged

max-sixty merged 3 commits into
mainfrom
hover-ui-dimensions

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

A closed options group (#4490) never draws the Another option field, but two places still acted as if it would.

The stylesheet reserves the Add cell's height until the widget draws it, so the next block stays put through upgrade. That reserve keyed only on the cell being absent, so every closed group kept an empty row of about 33px under its last option. The reserve now skips [closed] groups; a closed multiple-choice group still holds Done's row until Done is drawn. The stylesheet keeps its own statement of the rule because it has to reserve the row before the widget's script runs.

lf-options also reserved a binding number for the field whenever the group stood outside the chrome, a second copy of the rule that decides whether the field is offered. That copy missed closed, so a closed group of three options showed Done as 5, skipping a 4 nothing pressed. The reservation now reads the addition's own offered, the one place that rule is stated in script.

test_a_closed_group_answers_only_from_its_options now checks that the group ends at its last cell and that Done's badge reads 4. On main it fails both ways (33px of empty space, Done as 5).

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

max-sixty and others added 3 commits November 5, 2026 09:52
A `choose` group reserves the height of its Add cell ("Another option")
until the widget draws it, so the next block stays put through upgrade.
`closed` (#4490) leaves Add out for good, but the reserve still keyed only
on the cell being absent, so every closed group kept an empty row of about
33px under its last option forever.

The reserve now skips `[closed]` groups; a multiple-choice closed group
still holds Done's row until Done is drawn. The closed-group test now
also checks the group ends at its last cell; it fails on main with 33px
to spare.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
`lf-options` reserved a binding number for the Another option field
whenever the group stood outside the chrome, a second copy of the rule
that decides whether the field is offered at all. That copy missed
`closed`, so a closed multiple-choice group of three options showed Done
as 5, skipping a 4 nothing on the page pressed.

The reservation now reads the addition's own `offered`, the one place that
rule is stated. The closed-group test walks to the group with `m` and
expects Done's badge to read 4; it read 5 before.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@max-sixty
max-sixty merged commit 8bece18 into main Nov 5, 2026
5 checks passed
@max-sixty
max-sixty deleted the hover-ui-dimensions branch November 5, 2026 21:21
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