Skip to content

Commit 66e76b7

Browse files
committed
scroll to bottom
1 parent 4c3bcde commit 66e76b7

File tree

1 file changed

+3
-0
lines changed
  • apps/web/client/src/app/project/[id]/_components/right-panel/chat-tab/chat-input

1 file changed

+3
-0
lines changed

apps/web/client/src/app/project/[id]/_components/right-panel/chat-tab/chat-input/index.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,9 @@ export const ChatInput = observer(
155155
try {
156156
await onSendMessage(savedInput, chatMode);
157157
setInputValue('');
158+
setTimeout(() => {
159+
onScrollToBottom();
160+
}, 0);
158161
} catch (error) {
159162
console.error('Error sending message', error);
160163
toast.error('Failed to send message. Please try again.');

0 commit comments

Comments
 (0)