Repository navigation
Align margin reply text with conversation - #1165
Merged
Merged
Conversation
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.
leaf-agent
approved these changes
Sep 25, 2026
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
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.