Repository navigation
Floating panel: Shift+Enter scrolls, quicker views, quieter field and Send - #3073
Merged
Merged
Conversation
From the user's notes on 15 October: - Shift+Enter outside a list inserted its line without asking to be seen, so a field at its height limit left the caret below its edge until a character was typed. The plain new line now asks to scroll into view, as typing does; every composer shares the field (text-field.js). - Send wears every composer's face, the accent arrow, in place of a round ink press the user found severe. - A view the user opens or puts away arrives almost at once (a 120 ms outline, a 90 ms fade after the leaving view's 60 ms); the field growing a line keeps the 300 ms tween the user liked. - The corner minimize shows only while the pointer is near the corner, not over the whole panel. - The field grows to half the window before it scrolls, and words running past its top or bottom edge fade into it, in place of the overlay scrollbar that flashed with each new line. Where no scroll timeline drives the fade, the scrollbar stays. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
approved these changes
Oct 16, 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.
Fixes from the user's notes after using the floating panel (15 October):