Skip to content

Align margin reply text with conversation - #1165

Merged
max-sixty merged 2 commits into
mainfrom
codex/tighten-margin-reply-gap
Sep 25, 2026
Merged

max-sixty merged 2 commits into
mainfrom
codex/tighten-margin-reply-gap

Conversation

@max-sixty

@max-sixty max-sixty commented Sep 25, 2026 •

Copy link
Copy Markdown
Owner

The margin card's Reply text started 11 px to the right of the conversation text. The message, resting Reply control, and active editor now share a text column while the control border leaves room for its focus ring inside the scroller.

The browser test checks both reply states and horizontal overflow. It also removes assertions that fixed the old border edge as the alignment target.

Aligned margin conversation card

Local checks: 136 margin browser tests, 1,415 everyday tests, 112 runtime tests, and pre-commit passed. Five focused margin cases passed after merging current main.

This was written by Codex on behalf of max-sixty

Inset margin conversation content while widening the reply control within the scroll area. Keep the reply text on the same column and leave room for its focus ring.

Check both resting and active reply text alignment in the browser test, and remove border-edge assertions that expressed the old layout.
@max-sixty
max-sixty merged commit a732685 into main Sep 25, 2026
5 checks passed
@max-sixty
max-sixty deleted the codex/tighten-margin-reply-gap branch September 25, 2026 07:42
max-sixty added a commit that referenced this pull request Sep 27, 2026
…ows (#1294)

A margin card's Reply box never showed the `c` key while the card was at
rest, though `c` landed in it and the shortcut bar said "comment on the
thread". The card drew its Reply as a stand-in button
(`.lf-reply-disclosure`) over a hidden editor. `c`, the key badge and
landing all name the editor, so the badge was painted on a box the user
could not see. The key appeared only after the reply had been opened and
left open, for example after `c` then Escape, or once a draft existed.

#1204 fixed which box `c` reaches, and its invariant test read the badge
from the editor's `placeholder` attribute. That attribute records the
hint whether or not it is drawn, so the test passed on every route while
the key was invisible on eight of its ten.

The stand-in had matched the empty editor's box and face since #1165, so
it no longer changed how the card looked, only which node was on screen.
The card now draws the editor itself, as the Threads panel does. The
collapse/reveal state goes with the stand-in: its CSS,
`lfCollapseReply`, and the collapse on closing the card. `lfRevealReply`
remains the Threads panel's reveal.

### Behavior that moves

- At rest the card shows the editor's `Reply c` hint and its disabled
send glyph.
- Tab from the thread lands in the text box, as in the Threads panel,
rather than on a button that left page keys live.
- A press on the resting Reply focuses the editor directly instead of
running the thread landing, which re-scrolled the page to the passage
the card already stands beside.

### Tests

`test_c_lands_where_its_badge_is_and_in_the_card_on_screen` also
requires the drawn key to be visible whenever a card is up. It fails on
eight routes against the previous runtime and passes on all ten now.
Margin, navigation, chrome-contract and draft tests that pressed the
stand-in now press the editor, and assertions that the editor was hidden
at rest are gone.

Local: `uv run pytest tests` 1451 passed; `npm run test:runtime` 139
passed. Across the six affected browser files including nightly tests,
the branch fails the same 13 tests as its merge-base (6e3897a), plus
one Threads-panel scroll test that passes alone.

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

🤖 Generated with [Claude Code](https://claude.com/claude-code)

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