This commit is contained in:
Cledwyn Lew
2026-01-29 10:24:21 +08:00
parent bec0684e70
commit 9179e021e1
5 changed files with 39 additions and 496 deletions

View File

@@ -112,7 +112,7 @@ export const MessageItem = React.memo((props: MessageItemProps) => {
await onEdit(id, editedMessage);
setIsEditing(false);
setTimeout(() => scrollMessageIntoView(), 50);
setTimeout(() => scrollMessageIntoView('end', 'smooth'), 100);
}
};
@@ -212,7 +212,7 @@ export const MessageItem = React.memo((props: MessageItemProps) => {
: originalMessage.swipes[activeSwipeId],
);
// 滚动到消息位置
setTimeout(() => scrollMessageIntoView('nearest', 'smooth'), 10);
setTimeout(() => scrollMessageIntoView('end', 'smooth'), 100);
}}
/>
<MessageActions