Repository navigation
Reserve only Send’s uncovered hit area in compact comments - #2282
Merged
Merged
Conversation
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.
leaf-agent
approved these changes
Oct 10, 2026
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.
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.