fix: scroll in share thread

This commit is contained in:
Krishav Raj Singh 2025-09-16 19:27:27 +05:30
parent 2138757de0
commit af44a97408
1 changed files with 1 additions and 1 deletions

View File

@ -561,7 +561,7 @@ export const ThreadContent: React.FC<ThreadContentProps> = ({
// Render scrollable content container with column-reverse (or just content when external scrolling)
<div
ref={scrollContainerRef || messagesContainerRef}
className={scrollContainerRef ? `${containerClassName} flex flex-col-reverse ${shouldJustifyToTop ? 'justify-end min-h-full' : ''}` : 'py-4 pb-0'}
className={scrollContainerRef ? `${containerClassName} flex flex-col-reverse ${shouldJustifyToTop ? 'justify-end min-h-full' : ''}` : 'py-4 pb-0 overflow-auto'}
onScroll={scrollContainerRef ? handleScroll : undefined}
>
<div ref={contentRef} className="mx-auto min-w-0 w-full max-w-3xl px-4 md:px-6">