Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

fix(trace-ui): make tracetree scrollable again (#8936)

Nimar69c91c59884d
diff --git a/web/src/components/trace/index.tsx b/web/src/components/trace/index.tsx
index c6970488b6..8a55016168 100644
--- a/web/src/components/trace/index.tsx
+++ b/web/src/components/trace/index.tsx
@@ -666,7 +666,7 @@ export function Trace(props: {
)}
</div>
) : (
- <div className="h-full w-full flex-1 flex-col overflow-hidden">
+ <div className="flex h-full w-full flex-col overflow-hidden">
{isGraphViewAvailable && showGraph ? (
<ResizablePanelGroup
direction="vertical"
@@ -677,9 +677,11 @@ export function Trace(props: {
defaultSize={treeGraphSizes[0]}
minSize={5}
maxSize={95}
- className="overflow-y-auto overflow-x-hidden px-2"
+ className="flex flex-col overflow-hidden px-2"
>
- <div className="pb-2">{treeOrSearchContent}</div>
+ <div className="min-h-0 flex-1 overflow-y-auto pb-2">
+ {treeOrSearchContent}
+ </div>
</ResizablePanel>
<ResizableHandle className="relative h-px bg-border transition-colors duration-200 after:absolute after:inset-x-0 after:top-0 after:h-1 after:-translate-y-px after:bg-blue-200 after:opacity-0 after:transition-opacity after:duration-200 hover:after:opacity-100 data-[resize-handle-state='drag']:after:opacity-100" />
@@ -697,8 +699,10 @@ export function Trace(props: {
</ResizablePanel>
</ResizablePanelGroup>
) : (
- <div className="h-full w-full overflow-auto px-2">
- <div className="pb-2">{treeOrSearchContent}</div>
+ <div className="flex h-full w-full flex-col overflow-hidden px-2">
+ <div className="min-h-0 flex-1 overflow-y-auto pb-2">
+ {treeOrSearchContent}
+ </div>
</div>
)}
</div>