Skip to content

Show only the comment box's field while writing; grow its card out of it at Send - #3187

Merged
max-sixty merged 3 commits into
mainfrom
composer-growth-direction
Oct 20, 2026
Merged

max-sixty merged 3 commits into
mainfrom
composer-growth-direction

Conversation

@max-sixty

@max-sixty max-sixty commented Oct 19, 2026 •

Copy link
Copy Markdown
Owner

While a comment is written, its box paints only its field again, and Send grows the sent card out of that field, as before #3157.

The user preferred the box as a field that opens into its card at Send to a box painted as the card while it is written (#3157, #3161). The frame still reserves the card's name and Reply rows unpainted around the field, and placement still holds that whole frame inside the window (#3157's revert of #3139's overhang stays), so the card Send opens stands where the frame stood and no word moves.

  • annotation-chrome.css: the frame's ::before paint and its growth on writing (Grow the comment box's card paint out of its field, on its own layer #3161) go, as do the frame-wide grip and its accent; the grip is again the band around the field. The card's lf-comment-grow returns on .lf-margin-preview[data-lf-grows], keeping Grow the comment box's card paint out of its field, on its own layer #3161's ending past the shadow's reach so the shadow is whole when the clip lifts.
  • thread-preview.js: growOut returns. The card keeps opening at its box's width (Open a sent comment's card at its box's width #3166).
  • The reading region's cut, which placeThreadPreview wrote as the card's inline clip-path, is now four properties (--lf-cut-*) that the card's clip and its growth both read. The growth animates clip-path too and overrode the inline cut while it ran, so a card sent in a pane painted itself and its shadow past the pane's edge for 240ms (test_a_sent_card_grows_inside_its_reading_region, which fails without this). Each growth edge now stops at the cut, and the growth ends on the cut it rests at.
  • comment-placement.js header: records both rejected designs.

Behavior changes

  • Writing: the box shows only its field. Near the window's foot the field rises while empty room still shows below it, since that room is kept for the card's Reply row.
  • Send: the card opens out of the field over 240ms (whole at once under reduced motion). test_send_grows_thread_around_the_words asserts the box paints nothing beyond its field and that the card grows, besides its existing checks that the card takes the box's rectangle and no word moves.
  • The reserved rows take no presses or wheel turns: they reach the page beneath. The wheel-return test keeps wheeling the pane above its passage, since its old spot now lies on the box's field.

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

… it at Send

While a comment is written, its box paints only its field again, and Send grows the sent card out of that field, as before #3157.

The user preferred the box as a field that opens into its card at Send to a box painted as the card while it is written (#3157, #3161). The frame still reserves the card's name and Reply rows unpainted around the field, and placement still holds that whole frame inside the window (#3157's revert of #3139's overhang stays), so the card Send opens stands where the frame stood and no word moves.

- `annotation-chrome.css`: the frame's `::before` paint and its growth on writing (#3161) go, as do the frame-wide grip and its accent; the grip is again the band around the field. The card's `lf-comment-grow` returns on `.lf-margin-preview[data-lf-grows]`, keeping #3161's ending past the shadow's reach so the shadow is whole when the clip lifts.
- `thread-preview.js`: `growOut` returns. The card keeps opening at its box's width (#3166).
- `comment-placement.js` header: records both rejected designs.

## Behavior changes

- Writing: the box shows only its field. Near the window's foot the field rises while empty room still shows below it, since that room is kept for the card's Reply row.
- Send: the card opens out of the field over 240ms (whole at once under reduced motion). `test_send_grows_thread_around_the_words` asserts the box paints nothing beyond its field and that the card grows, besides its existing checks that the card takes the box's rectangle and no word moves.
- The reserved rows take no presses or wheel turns: they reach the page beneath. The wheel-return test keeps wheeling the pane above its passage, since its old spot now lies on the box's field.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>

@leaf-agent leaf-agent left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Send growth animates clip-path on .lf-margin-preview, which is also where placeThreadPreview writes the reading region's clip. The animation overrides that inline clip while it runs (verified in Chromium), so a comment sent near an inner scrollport edge can paint the card and its shadow outside the reading region for 240 ms. Keep the region boundary on a separate outer layer, or otherwise intersect the two clips, so growth stays within the region.

The growth animates clip-path, which overrode the region cut placeThreadPreview wrote inline, so a card sent in a pane painted past the pane's edge for 240ms. The cut is now four custom properties that the card's clip and every growth keyframe read.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
leaf-agent previously approved these changes Oct 19, 2026
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@max-sixty
max-sixty merged commit badfcb8 into main Oct 20, 2026
3 checks passed
@max-sixty
max-sixty deleted the composer-growth-direction branch October 20, 2026 00:21
max-sixty added a commit that referenced this pull request Oct 20, 2026
The floating panel's field draws an attached image as its picture alone
with a round × on its corner (#3190). The anchored comment box, a card's
reply and the other composers still drew the old tile: a cropped
thumbnail in a bordered box, beside a full-height × press behind a
divider. This makes the panel's look the one shared face of
`.lf-composer-media` in `response.css`. Each picture keeps its own
proportions (up to twice as wide as tall), is 56px tall unless the
surface has less room, and has 8px corners, a ring and a `--raise-1`
shadow. Its 18px × shows on hover or focus, always under a finger, and
reaches to the aim floor.

**Why the panel had its own copy.** The document layers `response.css`,
while the chrome sheet is unlayered. So the panel's generic press face
(`button:where(:not(.lf-fp-outlet *))`, its icon size and focus ring)
beat the shelf's own rules whatever their specificity. Those rules now
exclude `.lf-composer-media *`, as they already excluded outlet content.
`floating-panel.css` keeps only where its shelf stands, plus its ground
and ring.

**Anchored comment box.** The shelf used to stand beside the field, so
attaching an image widened the box from 380px to 454px at 1280px wide
and moved the words 74px. Under a finger at 390px it took 92px from the
field. The shelf now stands in the header row the box already keeps for
the card it becomes, over the field's start, with 34px pictures (50px
under touch). Attaching changes neither the box nor the words, and the
card that Send opens stays where the box was (x=779 before and after; on
main it jumped to 853). #3187 left that header row in place, as undrawn
room.

**Smaller changes.** The shelf image no longer also wears the theme's
page-image frame, which drew a second ring and shadow under the press's
own; in the panel that makes the shadow a touch lighter. Card-reply
pictures are 56px at their own proportions instead of a 52px crop, so
the reply row grows 6px more when an image is attached. Drawings keep
their tile.

**Tests.** `test_media`'s image-only composer test now checks that the
box and field stay put and that the pictures sit above the field. It
pastes six images, so the narrow shelf still overflows. `test_layout`'s
in-bounds check now reads the pictures and their × rather than the
shelf's unpainted padding. `test_render_threads` now checks the
picture's corner and the round ×. Before and after were probed on
triage-board in Chromium and Firefox: anchored box, hover, keyboard
focus on the ×, dark, touch at 390px, card reply, and the panel field.
All match, and the panel field's picture and × keep their geometry.

> _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