Skip to content

fix: grow a review comment's box with the comment - #178

Merged
omartelo merged 1 commit into
mainfrom
fix/comment-box-autogrow
Aug 7, 2026
Merged

fix: grow a review comment's box with the comment#178
omartelo merged 1 commit into
mainfrom
fix/comment-box-autogrow

Conversation

@omartelo

@omartelo omartelo commented Aug 7, 2026

Copy link
Copy Markdown
Owner

What

Every field review prose is typed into — the line comment, the batch note for the session, the reply, the summary above a review — was pinned at three lines. Anything longer than a sentence had to be dragged open before the first line was finished.

The field now sizes to its content: field-sizing: content on the shared commentFieldClass, with min-h-16 as the floor and max-h-64 as the ceiling; past the ceiling it scrolls. resize-y stays, so a drag still overrides it in either direction.

rows is inert under field-sizing, so the CommentBox prop and its call sites go with it. SubmitReviewDialog keeps its taller min-h-24 floor.

No JS: the growth is the browser's, and the shell is Chromium.

Test plan

  • biome check clean (the standing a11y warning backlog only), tsc clean, vitest 636 passed, vite build succeeds.
  • field-sizing:content lands in the built CSS bundle.
  • In task dev, on a pull request: open a line comment, a batch note for the session and a reply — each starts short, grows while typing, stops at the ceiling and scrolls. The resize handle still drags in both directions.

Every field review prose is typed into — the line comment, the batch note
for the session, the reply, the summary above a review — was pinned at
three lines, so anything longer than a sentence had to be dragged open
before the first line was finished.

The field now sizes to its content: `field-sizing: content` with the floor
and the ceiling as min/max height, scrolling past the ceiling. `resize-y`
stays, so a drag still overrides it in either direction. `rows` is inert
under `field-sizing`, so the prop and its call sites go.
@omartelo
omartelo merged commit 6563591 into main Aug 7, 2026
2 checks passed
@omartelo
omartelo deleted the fix/comment-box-autogrow branch August 7, 2026 13:28
@omartelo omartelo mentioned this pull request Aug 7, 2026
4 tasks
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.

1 participant