fix(dashboard): grow main chat composer height as message grows
Reorders ChatView's input handler to resize the textarea before the controlled setMessageInput call (matching QuickChat) so the height assignment lands in the same frame as the keystroke and isn't lost to React 18 batching. Also adds a 40px floor to clampChatInputHeight so a 0-scrollHeight measurement can't collapse the composer to zero. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
5
.changeset/fix-chat-composer-autosize.md
Normal file
5
.changeset/fix-chat-composer-autosize.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@runfusion/fusion": patch
|
||||
---
|
||||
|
||||
Fix the main chat composer (ChatView) so the textarea grows in height as the message gets longer, matching QuickChat's behavior. The autosize now runs before the controlled `setMessageInput` (so the height assignment lands in the same frame as the user's keystroke), and the height clamp now has a 40px floor so a 0-scrollHeight measurement never collapses the composer to zero.
|
||||
Reference in New Issue
Block a user