Skip to content

Keep message controls off the offer floor, so their face stays the head's line - #3748

Merged
max-sixty merged 1 commit into
mainfrom
control-line
Oct 23, 2026
Merged

max-sixty merged 1 commit into
mainfrom
control-line

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

#3738 gave message controls (a message's Edit, its reaction trigger, Discard and Save) a 26px face that meets the 44px touch floor with a reach. But they are also offers (data-lf-offer="button"), and the offer floor's min-height: var(--aim-floor) still stood the Edit control and the reaction trigger at 44px under a finger. In a message head now 28px tall, the reaction trigger's face covered two lines of the message's words, so test_a_message_reaction_trigger_meets_its_header_and_covers_no_words[360-True] is red on main (browser tier, which a PR doesn't run).

  • Fix (browser/styles/components/surfaces.css): message controls leave the offer floor, as .lf-btn already does, and meet the floor by their reach. The test now reads the trigger's aim (face or reach) instead of its face height.
  • Aim sweep (tests/page_scripts/aims.js): with the trigger's reach live, the sweep flagged two things that aren't defects, so it now judges them the way a press resolves.
    • A reach "over a field" counted any field stacked anywhere under the point, including a page field the panel covers. It now asks what would take the press without the reach, which is the first box beneath the control.
    • An open popover or dialog, like the chrome over the page, now takes the presses it stands over. The reaction palette, open over the panel's buttons, had read as a control lying over them.

Checked: the reaction tests and the offered-controls sweep under both pointers pass. test_suggestion_picker_preserves_the_comment_draft and test_reactions_keep_all_six_buttons_on_an_occupied_target[390-keyboard] fail on main as well; the first is flaky there (1 of 2 runs). The corpus gate's aim findings are unchanged at 166 under a finger, all the diff's line-comment presses plus a film line and a feed refresh, which also fail on main.

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

…ad's line

#3738 gave message controls a 26px face with a reach, but they are also
offers, and the offer floor's min-height stood them at 44px under a
finger. In a head now 28px tall, the reaction trigger covered two lines
of its message's words (test_a_message_reaction_trigger_meets_its_header_
and_covers_no_words[360-True], red on main). They leave the offer floor,
as .lf-btn does, and meet the floor by their reach. The test reads the
trigger's aim rather than its face.

The aim sweep then judged a reach by every box stacked under it and by
an open popover over it. It now asks what would take the press without
the reach, the first box beneath the control, so a page field the panel
covers loses nothing to a panel control; and an open popover or dialog,
like the chrome over the page, takes the presses it stands over.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@max-sixty
max-sixty merged commit 244bec2 into main Oct 23, 2026
3 checks passed
@max-sixty
max-sixty deleted the control-line branch October 23, 2026 12:58
max-sixty added a commit that referenced this pull request Oct 25, 2026
…#3909)

The aim floor kept two selector lists: one for the inline floor, and one
for the block floor that had to exclude by hand every offered control
meeting the block floor with a reach instead (`.lf-btn`,
`.lf-msg-control`). A control missing from those exclusions got both a
44px face and a reach; that is how message controls stood 44px tall in a
28px head, fixed one entry at a time in #3748.

Now the reach rule sets `--lf-face-floor: auto` (registered with
`@property`, not inherited), and a single floor rule states both floors,
with `min-height: var(--lf-face-floor, var(--aim-floor))`. Whether a
control is on the reach's list decides which of the two meets its block
floor, so a pressable offer gets a floor-tall face unless it hangs a
reach, and can no longer get both. The block-axis list and its
exclusions are gone, and the render gate's `AIM_FLOOR_RULE` reads the
merged rule.

No behaviour changes. The computed min-width, min-height, size, position
and `::after` box of 5,842 controls per pointer (143 families, 38 corpus
states, fine and coarse) are identical before and after, apart from
scroll and unread-dot ordering noise. The aim sweeps report the same
findings on the base and on the change across 48 runs, and Firefox
matches the base.

After merging main, `pnpm run check:browser` confirms the committed
sheets match their sources, and the corpus gate
(`tests/journeys/test_render_gate.py::test_the_layer_holds_its_whole_page_rules_on_the_corpus`)
and
`tests/journeys/test_render_controls.py::test_every_control_the_layer_offers_is_a_box_the_user_can_hit`
(fine and coarse) pass on the merged branch.

> _This was written by Claude Code on behalf of max-sixty_

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