Skip to content

Commit cd158f6

Browse files
committed
Hide the accessories in the span inspector
1 parent 8e72c51 commit cd158f6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

apps/webapp/app/components/runs/v3/SpanTitle.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,16 @@ type SpanTitleProps = {
1111
level: TaskEventLevel;
1212
isPartial: boolean;
1313
size: "small" | "large";
14+
hideAccessory?: boolean;
1415
};
1516

1617
export function SpanTitle(event: SpanTitleProps) {
1718
return (
1819
<span className={cn("flex items-center gap-x-2 overflow-x-hidden", eventTextClassName(event))}>
1920
<span className="truncate">{event.message}</span>{" "}
20-
<SpanAccessory accessory={event.style.accessory} size={event.size} />
21+
{!event.hideAccessory && (
22+
<SpanAccessory accessory={event.style.accessory} size={event.size} />
23+
)}
2124
</span>
2225
);
2326
}

0 commit comments

Comments
 (0)