Repository navigation
Keep message controls off the offer floor, so their face stays the head's line - #3748
Merged
Merged
Conversation
…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]>
leaf-agent
approved these changes
Oct 23, 2026
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]>
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.
#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'smin-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, sotest_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).browser/styles/components/surfaces.css): message controls leave the offer floor, as.lf-btnalready does, and meet the floor by their reach. The test now reads the trigger's aim (face or reach) instead of its face height.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.Checked: the reaction tests and the offered-controls sweep under both pointers pass.
test_suggestion_picker_preserves_the_comment_draftandtest_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.