Skip to content

Commit f062914

Browse files
Update Chat.tsx
1 parent ae7d2b2 commit f062914

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

frontend/src/pages/chat/Chat.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -825,11 +825,11 @@ const Chat = ({ type = ChatType.Browse }: Props) => {
825825
}, [AUTH_ENABLED])
826826

827827
useLayoutEffect(() => {
828-
chatMessageStreamEnd.current?.scrollIntoView({ behavior: 'smooth' })
828+
chatMessageStreamEnd.current?.scrollIntoView({ behavior: 'auto' })
829829
}, [showLoadingMessage, processMessages])
830830

831831
useEffect(() => {
832-
chatMessageStreamEnd.current?.scrollIntoView({ behavior: 'smooth' })
832+
chatMessageStreamEnd.current?.scrollIntoView({ behavior: 'auto' })
833833
}, [messages])
834834

835835
const onShowCitation = (citation: Citation) => {

0 commit comments

Comments
 (0)