fix: chat scrolling fix

This commit is contained in:
2025-04-07 14:18:08 +04:00
parent ddbe1d953b
commit 5b5e2e4b5e

View File

@@ -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
/>
<MessageInput />