From 5b5e2e4b5e3e8370b5a853e7a7eb26a4ef1f0eeb Mon Sep 17 00:00:00 2001 From: AlexSserb Date: Mon, 7 Apr 2025 14:18:08 +0400 Subject: [PATCH] fix: chat scrolling fix --- src/components/Chat/Chat.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Chat/Chat.tsx b/src/components/Chat/Chat.tsx index 1fed7d5..feb1b51 100644 --- a/src/components/Chat/Chat.tsx +++ b/src/components/Chat/Chat.tsx @@ -17,7 +17,7 @@ const Chat = () => { const onFollowOutputHandler = useCallback( (atBottom: boolean) => { - if (atBottom || lastMessage?.crmSender) { + if (atBottom) { return "auto"; } else { return false; @@ -75,7 +75,7 @@ const Chat = () => { itemContent={itemContent} startReached={fetchMoreMessages} height={"100%"} - increaseViewportBy={100} + increaseViewportBy={200} alignToBottom />