Repository navigation
Keep the panel's press face off the comment box seated in its row - #3223
Merged
Merged
Conversation
On a page that draws its own annotations, the anchored comment box stands in the panel's row in the field's place (`.lf-fp-response`). Its Send, and Dictate before any words, stood on a second line under the field, at the field's start, so the panel grew from 44px to 72px while the box was open. The cause was the panel's generic press face. The chrome sheet is unlayered and the document layers response.css, so the face's rules beat the comment box's own whatever their specificity. Its reach rule set the box's Send to `position: relative`, taking it out of the absolute seat in the field's end corner and into a grid row of its own, and its face added `padding: 0 8px` and the panel's hover fill. The face already skipped what Leaf's reader draws in a view's outlet and the attachment shelf; it now skips the seated comment box too, which carries its face in response.css as it does on the page. Send now stands at the field's end on its line, as in every comment box, and the panel keeps its resting height while the box is open. Tests: the panel-seat test checks Send stands inside the field's line at its end; the check fails on the previous sheet. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
approved these changes
Oct 20, 2026
max-sixty
added a commit
that referenced
this pull request
Oct 20, 2026
The floating panel's generic face for its own buttons was unlayered, while the document layers every component's face (`lf-base`). So the panel's face beat any component it held, whatever their specificity. Each leak got one more exclusion, repeated through eight selectors: first what Leaf's reader draws in a view's outlet, then the attachment shelf (#3214), then the comment box seated in the row (#3223). **The boundary.** The face now stands where defaults that yield to components stand: in `lf-base`, as the marks sheet's indication default does, inside `@scope (.lf-floating-panel) to (.lf-fp-outlet, .lf-fp-response, .lf-composer-media)`. - **The scope's limit** is the one place that names what the panel holds. The face reaches none of those components' properties, including ones a component leaves unset, such as the press reach and `white-space`. A layer alone still let those through, so the limit is needed. - **The layer** lets the panel's own unlayered rules outrank the face, and so does a shared face a panel control wears. The face still outranks the chrome's control reset (`lf-reset`) and the focus band, which carries no weight. In the lowest layer instead, that band moved every panel focus ring from -2px to 3px. - **What's removed:** the per-component exclusions. The field's exclusion from the press reach stays, because the field's presses are the panel's own, sized by its editor. **Checked.** I diffed every visible control's computed face (at rest and hovered) and its focus ring, main against this branch, in Chromium, in Firefox and under touch. The states: the panel at rest, writing with an image attached, Threads, the leaf's menu, the seated comment box, and a thread open in the panel. The outlet, the shelf and the seated comment box are identical. So are the panel's own presses, except two that now take the face their own rules state: - **The field's Send** is now the composers' accent arrow, with its tinted disc on hover, as the user asked on 15 October (#3073). Before, it was an ink arrow on the panel's hover fill. - **A thread's Resolve icon** is 14px, as `.lf-fp-settle .lf-action-icon` states, rather than 16px. #3214's `:not()` on the panel's icon rule had given that rule more weight. **Tests.** The Send test now checks that Send wears the accent. It fails on the previous sheet. The focused panel, ring, chrome-scope, stylesheet-delivery and shelf tests pass. > _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.
Follows #3220. On a page that draws its own annotations, the anchored comment box stands in the panel's row in the field's place (
.lf-fp-response). Its Send, and Dictate before any words, stood on a second line under the field, at the field's start. The panel grew from 44px to 72px while the box was open.Cause: the panel's generic press face. The chrome sheet is unlayered and the document layers
response.css, so the face's rules beat the comment box's own whatever their specificity. Its reach rule set the box's Send toposition: relative, which took it out of its absolute seat in the field's end corner and put it in a grid row of its own. The face also addedpadding: 0 8pxand the panel's hover fill.Fix: the face already skipped what Leaf's reader draws in a view's outlet, and the attachment shelf. It now skips the seated comment box too, which carries its own face in
response.css, the same one it has on the page. Send now stands at the field's end on its line, as in every comment box, and the panel keeps its resting height while the box is open.Tests: the panel-seat test now checks that Send stands inside the field's line, at its end. The check fails on the previous sheet.