fix(webui): feather clipped activity edges

This commit is contained in:
chengyongru
2026-08-05 11:10:46 +08:00
committed by chengyongru
parent 6e9ae5bd05
commit a54d5d14cb
4 changed files with 106 additions and 4 deletions
@@ -10,6 +10,8 @@ interface ThinkingReasoningShellProps {
children: ReactNode;
viewportRef: Ref<HTMLDivElement>;
contentRef: Ref<HTMLDivElement>;
fadeTop: boolean;
fadeBottom: boolean;
onToggle: () => void;
onScroll: () => void;
}
@@ -21,6 +23,8 @@ export function ThinkingReasoningShell({
children,
viewportRef,
contentRef,
fadeTop,
fadeBottom,
onToggle,
onScroll,
}: ThinkingReasoningShellProps) {
@@ -75,8 +79,10 @@ export function ThinkingReasoningShell({
<div
ref={viewportRef}
data-testid={expanded ? "agent-activity-scroll" : undefined}
data-fade-top={fadeTop}
data-fade-bottom={fadeBottom}
onScroll={onScroll}
className="mt-1.5 max-h-[180px] overflow-y-auto pr-1 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden"
className="activity-scroll-fade mt-1.5 max-h-[180px] overflow-y-auto pr-1 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden"
aria-hidden={!expanded}
>
<div ref={contentRef} className="flex flex-col gap-0.5">