diff --git a/web/src/app/chat/components/message-list-view.tsx b/web/src/app/chat/components/message-list-view.tsx index 9c455eb..8a44638 100644 --- a/web/src/app/chat/components/message-list-view.tsx +++ b/web/src/app/chat/components/message-list-view.tsx @@ -173,7 +173,7 @@ function MessageListItem({ )} > -
+
({ scrollToBottom() { if (isAtBottom) { scrollToBottom(); } - } + }, })); const tempScrollRef = useRef(null); @@ -51,6 +59,14 @@ export function ScrollContainer({ } }, [autoScrollToBottom, contentRef, scrollRef]); + useLayoutEffect(() => { + if (contentRef.current) { + if (contentRef.current.parentElement) { + contentRef.current.parentElement.style.display = "block"; + } + } + }, [contentRef]); + return (
{scrollShadow && (