From a8582be54dfd31b0e8249a0eb254ab61fc37ee9b Mon Sep 17 00:00:00 2001 From: ManishMadan2882 Date: Thu, 5 Sep 2024 03:17:14 +0530 Subject: [PATCH] smooth transition to new input --- frontend/src/conversation/Conversation.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/conversation/Conversation.tsx b/frontend/src/conversation/Conversation.tsx index cf477e8f..01b8a2de 100644 --- a/frontend/src/conversation/Conversation.tsx +++ b/frontend/src/conversation/Conversation.tsx @@ -68,7 +68,7 @@ export default function Conversation() { const scrollIntoView = () => { if (!conversationRef?.current || eventInterrupt) return; - if (status === 'idle') { + if (status === 'idle' || !queries[queries.length - 1].response) { conversationRef.current.scrollTo({ behavior: 'smooth', top: conversationRef.current.scrollHeight,