smooth transition to new input

This commit is contained in:
ManishMadan2882
2024-09-05 03:17:14 +05:30
parent 30bb8449e9
commit a8582be54d

View File

@@ -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,