mirror of
https://gitee.com/wanwujie/deer-flow
synced 2026-04-21 21:24:46 +08:00
feat: integrate Radix UI scroll area component and update message list view
This commit is contained in:
@@ -68,7 +68,7 @@ export function MessageListView({
|
||||
return (
|
||||
<ScrollContainer
|
||||
className={cn(
|
||||
"flex h-full w-full flex-col overflow-y-auto pt-4",
|
||||
"flex h-full w-full flex-col overflow-hidden pt-4",
|
||||
className,
|
||||
)}
|
||||
scrollShadowColor="#f7f5f3"
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
|
||||
import { useStickToBottom } from "use-stick-to-bottom";
|
||||
|
||||
import { ScrollArea } from "~/components/ui/scroll-area";
|
||||
import { cn } from "~/lib/utils";
|
||||
|
||||
export function ScrollContainer({
|
||||
@@ -47,11 +48,11 @@ export function ScrollContainer({
|
||||
></div>
|
||||
</>
|
||||
)}
|
||||
<div ref={scrollRef} className={"h-full w-full overflow-y-scroll"}>
|
||||
<ScrollArea ref={scrollRef} className="h-full w-full">
|
||||
<div className="h-fit w-full" ref={contentRef}>
|
||||
{children}
|
||||
</div>
|
||||
</div>
|
||||
</ScrollArea>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user