revert: scroll container display change (#258)

This commit is contained in:
JeffJiang
2025-05-28 19:23:32 +08:00
committed by GitHub
parent d14fb262ea
commit fcbc7f1118

View File

@@ -59,14 +59,6 @@ export function ScrollContainer({
}
}, [autoScrollToBottom, contentRef, scrollRef]);
useLayoutEffect(() => {
if (contentRef.current) {
if (contentRef.current.parentElement) {
contentRef.current.parentElement.style.display = "block";
}
}
}, [contentRef]);
return (
<div className={cn("relative", className)}>
{scrollShadow && (