Skip to content

Commit 779ed0e

Browse files
authored
Observability front-end: a few last fixes (#3249)
* remove max height from the tree view * Make it much harder for the SpanCardTimeline to get bumped to the right at deep nestings
1 parent 626fb58 commit 779ed0e

File tree

2 files changed

+2
-3
lines changed
  • frontend/app/src

2 files changed

+2
-3
lines changed

frontend/app/src/components/v1/agent-prism/SpanCard/SpanCard.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ const getContentWidth = ({
6969
width -= LAYOUT_CONSTANTS.CONNECTOR_WIDTH;
7070
}
7171

72-
return width - contentPadding;
72+
return Math.max(width - contentPadding, 40);
7373
};
7474

7575
const getGridTemplateColumns = ({
@@ -395,7 +395,6 @@ export const SpanCard: FC<SpanCardProps> = ({
395395
)}
396396
style={{
397397
width: `min(${contentWidth}px, 100%)`,
398-
minWidth: 140,
399398
}}
400399
onClick={eventHandlers.handleToggleClick}
401400
>

frontend/app/src/pages/main/v1/workflow-runs-v1/$run/v2components/step-run-detail/observability/task-run-trace.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export function TaskRunTrace({ spans }: { spans: [OtelSpan, ...OtelSpan[]] }) {
4848
</h4>
4949
</div>
5050
</div>
51-
<div className="max-h-[500px] overflow-y-auto">
51+
<div className="overflow-y-auto">
5252
<TreeView
5353
spanTree={traceSpanTree}
5454
expandedSpansIds={expandedSpansIds}

0 commit comments

Comments
 (0)