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( const onFollowOutputHandler = useCallback(
(atBottom: boolean) => { (atBottom: boolean) => {
if (atBottom || lastMessage?.crmSender) { if (atBottom) {
return "auto"; return "auto";
} else { } else {
return false; return false;
@@ -75,7 +75,7 @@ const Chat = () => {
itemContent={itemContent} itemContent={itemContent}
startReached={fetchMoreMessages} startReached={fetchMoreMessages}
height={"100%"} height={"100%"}
increaseViewportBy={100} increaseViewportBy={200}
alignToBottom alignToBottom
/> />
<MessageInput /> <MessageInput />