feat: add auto-scroll functionality to ScrollContainer and disable auto-scroll after report completed

This commit is contained in:
Jiang Feng
2025-04-27 15:45:53 +08:00
parent f35131da19
commit 5f22cfc124
3 changed files with 18 additions and 1 deletions

View File

@@ -76,6 +76,7 @@ export function MessageListView({
<ScrollContainer
className={cn("flex h-full w-full flex-col overflow-hidden", className)}
scrollShadowColor="var(--app-background)"
autoScrollToBottom
>
<ul className="flex flex-col">
{messageIds.map((messageId) => (