Skip to content

Drop the response ellipsis from the comment bar - #1863

Merged
max-sixty merged 3 commits into
mainfrom
agent-ac4b8570d59a3ac0d
Oct 6, 2026
Merged

max-sixty merged 3 commits into
mainfrom
agent-ac4b8570d59a3ac0d

Conversation

@max-sixty

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

Copy link
Copy Markdown
Owner

The floating comment bar no longer shows its ⋯ button on any pointer, phones included, so the comment field spans the bar everywhere. The sent card takes the bar's frame, so a sent message now ends where the card's Reply field does. Before, it ended about 40px short, the button's width plus its gap.

Before After
Composer, words in it ⋯ beside the field field spans the bar
Sent card message ends 40px short of Reply message ends at Reply's edge

Routes to Suggest and the reactions. Only keys open them now: Tab from the field (the shortcut bar names it, ⇥ other responses), or e while the field isn't focused. A mouse alone and a finger have no route to them. This gap is accepted for now. TODO.md gains an entry asking whether to make them more available, and runtime/keyboard/AGENTS.md ("Touch routes") and the reaction.open command name the gap.

Mechanism. The ⋯ button is deleted, not hidden: its element, its aria disclosure wiring, the coarse-pointer listener in syncResponseOptions (composing/selection.js) and its CSS in chrome.css, shadow.css and annotation-chrome.css. The bar's grid keeps no column for it. Escape from the choices returns focus to the field, or to Comment where only that stands. The module headers in surface.js and selection.js record the decision.

Tests. The ellipsis-room test asserts that the field spans the bar and that the sent message ends at the Reply field's edge; it fails on main (329 vs 369). The comment-bar test asserts no button stands beside the field. The phone test that tapped ⋯ open is deleted. Tests that clicked ⋯ now press Tab or e, and the compact-face test compares the field with Suggest.

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

On a fine pointer, the floating response bar no longer shows its ellipsis
(⋯), so the comment field spans the bar. The sent card adopts the bar's
frame, so a sent message now ends where the card's Reply field does, not
40px short of it.

Keys still open the other responses: Tab from the field (the shortcut bar
names it, "⇥ other responses") and `e` while the field stands unfocused.
A coarse pointer keeps the ellipsis, since a finger has no keys and the
ellipsis is its only route to Suggest and the reactions.

The decision lives in `syncResponseOptions`, which hides the ellipsis
unless the pointer is coarse and follows a pointer change. The bar's grid
no longer reserves a column for it; the ellipsis takes an implicit one
when shown. Escape from the choices returns focus to whichever of the
field, the ellipsis or Comment is visible.

Tests: the ellipsis-room test now asserts the field spans the bar and the
sent message ends at the Reply field's edge (fails on main: 329 vs 369).
A new phone test opens the choices from the ellipsis with a tap. Tests
that opened the choices with the ellipsis now press Tab or `e`; the
expand-in-place test drops its click opener; the compact-face test
compares the field with Suggest; the aim and image-shelf tests no longer
measure against the ellipsis.

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 floating bar loses its mouse route to Suggest and reactions. In syncResponseOptions, the new fine-pointer condition hides the only clickable disclosure; the remaining Tab and e routes require a keyboard. A reader who selects a passage with the mouse and uses the floating controls can now only comment. Please keep a pointer route to the other responses while making the field and sent card share the intended width.

max-sixty and others added 2 commits October 5, 2026 21:07
The floating response bar no longer has an ellipsis (⋯) on any pointer,
phones included, so its comment field spans the bar everywhere. The
button, its aria disclosure wiring, its coarse-pointer listener and its
CSS are deleted rather than hidden.

Suggest and the reactions now open only by key: Tab from the field, or
`e`. A mouse alone and a finger have no route to them. The user accepts
that gap for now; TODO.md asks whether to make them more available, and
keyboard/AGENTS.md "Touch routes" and the `reaction.open` command name
the gap.

Tests: the phone test that opened the choices from the ellipsis is
deleted, since no pointer shows it. The comment-bar test now asserts no
button stands beside the field; assertions that the ellipsis stayed
hidden are dropped, since the element no longer exists.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@max-sixty max-sixty changed the title Drop the response ellipsis from the comment bar on a fine pointer Drop the response ellipsis from the comment bar Oct 6, 2026

@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.

Removing the coarse-pointer ellipsis also removes the only tap route to Suggest and reactions on a selected passage or item. After “Comment on selection,” the options stay hidden until Tab or e; a phone user cannot send either response without a hardware keyboard. This is a new touch regression beyond the mouse route raised in the earlier review, and it conflicts with AGENTS.md (“Before finishing a feature”) and the existing “Touch routes” contract. Please keep a tap route to these actions while giving the field the intended width; a TODO entry cannot make the actions reachable.

@max-sixty
max-sixty merged commit f2b39a8 into main Oct 6, 2026
4 checks passed
@max-sixty
max-sixty deleted the agent-ac4b8570d59a3ac0d branch October 6, 2026 04:36
max-sixty added a commit that referenced this pull request Oct 6, 2026
A comment field kept its Send arrow's column clear on every line, and a
sent comment kept the same wrapping, so every message ended about 40px
short of its card. The field now keeps that room after its last words
only, where Send stands beside the last line, so the lines above wrap at
the field's full width. With #1863, a just-sent comment's words now end
13–18px from the Reply field's edge, against 94px before.

- **Field** (`composing/text-field.js`): the room is an inline-block
after the last document line, drawn while that line has words, and sized
by `--lf-field-end-room`, a registered length. Two cases hold the room
on every line instead, since other lines then pass beside Send: under a
coarse pointer, whose 44px hit box is taller than a line, and while the
field scrolls. A resize observer reads whether the field scrolls into
`:state(scrolls)`. The CSS scroll-state query it replaces exists only in
Chromium, so Firefox and Safari kept main's wrapping. `endRoom` reports
which mode holds.
- **Composers**: the margin composer, card and panel replies, the page
comment, the inline field and an Ask's Add row state the room as
`--lf-field-end-room` instead of a right padding.
- **Sent card**: it carries the field's mode across the send
(`data-lf-comment-frame`) and draws the same room, so no word moves when
the draft becomes a message. That holds for paragraphs. A list, quote or
heading renders with a different indent or font from its source, so it
rewraps at Send, as on main. Across 26 lengths each, a quote rewrapped
every time on both; a heading 24 times on main and 19 here; a list 12
times on main, where its indent happened to roughly match the room on
every line, and every time here.
- **Tests**: the chrome contracts read the new contract. One new test
opens a line under a full last line with Shift+Enter, then types on it,
and asserts that nothing above moves. Another holds the room on every
line only while the field scrolls, in Chromium and WebKit; it fails on
the scroll-state rule. `leaf-dev stills` gains 15 states with long
drafts and a sent comment. The Mac thread snapshots are re-accepted: 25
composer stages change.

Phones keep the room on every line. Send's 28px box reaches 2–3px into
the line above the last at the field's end; that was reviewed and
accepted. A last row that fills the field puts the room on a row of its
own.

> _This was written by Claude Code on behalf of max-sixty_

---------

Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
max-sixty added a commit that referenced this pull request Oct 11, 2026
The selection composer again has only its Send action. Remove the Other
responses ellipsis, its DOM/ARIA wiring and the space reserved for a
second action from both floating and inline presentations. Suggest and
reactions keep their Tab and e keyboard routes.

This restores the product decision from #1863, which #2259 reversed when
adding pointer access. Record that omitting the ellipsis is a deliberate
product decision, including on phones. We can reconsider it with the
user through a rendered design comparison; it is not an implementation
defect to repair. Update the gallery and regression coverage
accordingly.

Validation: 10 focused browser cases covering desktop/touch,
floating/inline, no reactions, draft retention, disclosure/Escape, field
growth and sent-card alignment; 336 runtime tests; light/dark rendered
journeys and an independent reader’s select, draft, disclosure, Escape
and Send journey. A fresh startup comparison against current main keeps
the same request counts and reduces code bytes before presentation.

> _This was written by Codex 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