Repository navigation
fix: enable auto-resize for chat input textarea - #12836
Merged
Merged
Conversation
Contributor
Author
|
@KevinHuSh Could you please review this PR? |
KevinHuSh
marked this pull request as draft
January 27, 2026 01:49
KevinHuSh
marked this pull request as ready for review
January 27, 2026 01:49
Contributor
Author
|
@cike8899 Could you please review this PR? Thanks |
cike8899
approved these changes
Jan 28, 2026
4 tasks done
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.
Closes #12803
What problem does this PR solve?
The chat input textarea in the Chat UI (and Embed UI) has a fixed height and cannot be resized, causing poor UX when users type messages longer than 2 sentences. The input becomes cramped and difficult to read/edit.
Root cause: The
Textareacomponent in NextMessageInput hadresize-noneandfield-sizing-contentCSS classes that prevented resizing, and the existingautoSizeprop was not being utilized.Solution:
resize-noneandfield-sizing-contentclassesautoSize={{ minRows: 1, maxRows: 8 }}to enable auto-expandmax-h-40class to limit maximum height to 160pxThe textarea now auto-expands from 1 to 8 rows as users type longer messages.
Type of change