Skip to content

Floating panel: Shift+Enter scrolls, quicker views, quieter field and Send - #3073

Merged
max-sixty merged 1 commit into
mainfrom
floating-panel
Oct 16, 2026
Merged

max-sixty merged 1 commit into
mainfrom
floating-panel

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

Fixes from the user's notes after using the floating panel (15 October):

  • Shift+Enter scrolls its new line into view. Outside a list, Shift+Enter 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 scrolls into view as typing does; the fix is in the shared text field, so every composer gets it. A browser test fails without it.
  • Send wears every composer's face (the accent arrow) instead of a round ink press.
  • Views open almost at once: a 120 ms outline and a 90 ms fade, where they took 300 ms; the field growing a line keeps its 300 ms tween, which the user liked.
  • The corner minimize shows only near the corner, not whenever the pointer is over the panel.
  • A taller field with faded edges: the field grows to half the window, and words past its top or bottom edge fade (a scroll-driven mask) in place of the overlay scrollbar that flashed with each new line. Without scroll timelines (Firefox), the scrollbar stays.

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

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]>
@max-sixty
max-sixty merged commit 366ac2b into main Oct 16, 2026
3 checks passed
@max-sixty
max-sixty deleted the floating-panel branch October 16, 2026 05:21
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