Skip to content

Reserve only Send’s uncovered hit area in compact comments - #2282

Merged
max-sixty merged 3 commits into
mainfrom
codex/comment-send-clearance
Oct 10, 2026
Merged

max-sixty merged 3 commits into
mainfrom
codex/comment-send-clearance

Conversation

@max-sixty

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

Copy link
Copy Markdown
Owner

Typing a trailing space in a compact comment could create an empty second line even when the draft and Send fit. The reservation counted space already covered by the text's right inset.

Derive the reserved width from Send's hit area and placement, shared by the composer and its retained sent message. Add a browser regression and a narrow before/after capture state. The browser still owns line breaking; narrower boxes retain a separate Send row when needed to keep the caret clear.

Validation: nine focused browser checks and 306 runtime tests passed, along with independent live interaction review. The Mac appearance gate passed all eight message-delivery journeys against their approved snapshots. A sweep across 81 viewport widths and caret measurements confirmed the remaining tight-width wraps protect actual Send clearance. Pre-commit checks pass.

This was written by Codex on behalf of max-sixty

The compact comment editor reserved all 28 pixels of Send after a right inset that already cleared 11 pixels of it. At a constrained width, typing a space wrapped that empty reservation onto a second line even though the words and action fit.

Derive the remaining reservation and action placement from the same inset. The sent message inherits that reservation to preserve wrapping. Cover the narrow typing transition and retain it in the appearance catalogue.
At 346 pixels the minimal fixture fails on field height with the original reservation: Space grows the box from 32 to 53 pixels. At the wider viewport only the geometry assertion caught the duplicate room.
@max-sixty
max-sixty merged commit 49bd4a2 into main Oct 10, 2026
7 of 8 checks passed
@max-sixty
max-sixty deleted the codex/comment-send-clearance branch October 10, 2026 21:29
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