Skip to content

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

fix(ui): trace timeline width calculation error (#6268)

marliessophieaf6d0f008600
diff --git a/web/src/components/trace/TraceTimelineView.tsx b/web/src/components/trace/TraceTimelineView.tsx
index 416c6c4bfe..3c153195ec 100644
--- a/web/src/components/trace/TraceTimelineView.tsx
+++ b/web/src/components/trace/TraceTimelineView.tsx
@@ -516,7 +516,7 @@ export function TraceTimelineView({
const scrollWidth = timelineContentRef.current.scrollWidth;
// Add 20px to account for scrollbar padding
- const newWidth = Math.max(SCALE_WIDTH, scrollWidth + 20);
+ const newWidth = Math.max(SCALE_WIDTH, scrollWidth);
if (newWidth !== contentWidth) {
setContentWidth(newWidth);
}