Skip to content

Keep the panel's press face off the comment box seated in its row - #3223

Merged
max-sixty merged 2 commits into
mainfrom
agent-afda6ba3a9c673bc5
Oct 20, 2026
Merged

max-sixty merged 2 commits into
mainfrom
agent-afda6ba3a9c673bc5

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

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 to position: 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 added padding: 0 8px and 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.

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

max-sixty and others added 2 commits October 19, 2026 19:52
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]>
@max-sixty
max-sixty merged commit 9600918 into main Oct 20, 2026
3 checks passed
@max-sixty
max-sixty deleted the agent-afda6ba3a9c673bc5 branch October 20, 2026 03:07
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]>
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