Skip to content

Open a sent comment's card at its box's width - #3166

Merged
max-sixty merged 5 commits into
mainfrom
composer-growth-direction
Oct 19, 2026
Merged

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

Conversation

@max-sixty

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

Copy link
Copy Markdown
Owner

A comment's card now opens at its comment box's width, so Send changes nothing on screen in Firefox too.

Send hands the card the box's rectangle (fabFrameAt, adopt), but the card sized its own width. Chromium's sizing matched the box; Firefox stood a one-line comment's card 13px wider, so its right edge jumped at Send (box 1231–1642, card 1231–1655 at 1728×999). The card's held width (session.width) now starts at the box's, so the two are one rectangle in every engine; at full width they already matched. The frame's width field, which nothing read, goes.

  • test_send_grows_thread_around_the_words gains a line-firefox case, which fails without the change.
  • The shift watch now installs only in Chromium, whose Layout Instability API it reads; in Firefox it raised a console warning the browser fixture rejects. The fake page the browser-problem tests pass carries a Chromium context for that reading.

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

max-sixty and others added 4 commits October 19, 2026 11:38
The growth Send used to play (growOut, removed in #3157) now plays where the
box becomes its card: when its field first takes focus or holds words. Only
the clip moves; the frame was already reserved, so no word does.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The card paint moves to the bar's ::before, beneath its grip and controls,
so the growth clips only paint: presses in the frame's rows land from the
start, and frame tests keep the box's marker. The layer is promoted so its
raster survives a scroll out of the window; re-rastered on return, the
shadow missed the frame that brought the words back (wheel-return
document-target and code-target, failing since #3157).

The pane wheel-return case wheeled over the box's top row, which since
#3157 is the painted card's grip and takes the wheel as the thread card
does; it now wheels the pane above the passage.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Send hands the card its comment box's rectangle, but the card sized its own
width, and Firefox sized a one-line comment's card 13px wider than its box,
so its right edge jumped at Send. The card's held width now starts at the
box's, which makes the two one rectangle in every engine. The frame's unused
`width` field goes.

test_send_grows_thread_around_the_words gains a Firefox one-line case, which
fails without the change; the shift watch now installs only in Chromium,
whose Layout Instability API it reads.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
leaf-agent previously approved these changes Oct 19, 2026
The shift watch now reads which engine a page runs in.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@max-sixty
max-sixty merged commit 10ff156 into main Oct 19, 2026
3 checks passed
@max-sixty
max-sixty deleted the composer-growth-direction branch October 19, 2026 20:08
max-sixty added a commit that referenced this pull request Oct 20, 2026
… it at Send (#3187)

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

---------

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