+
@@ -162,8 +172,8 @@ function KeyValue({ data, emptyMessage = 'No attributes', className }: KeyValueP
variant="text"
size="tiny"
aria-label={`Copy ${key}`}
- className="size-5 shrink-0 p-0 opacity-0 group-hover/kv:opacity-100 focus-visible:opacity-100"
- icon={}
+ className="size-5 shrink-0 p-0"
+ icon={}
onClick={() => copy(stringifyValue(value))}
/>
@@ -228,23 +238,33 @@ function SpanHeader({ span }: { span: Span }) {
{span.name}
-
- - Duration
- - {isRunning ? `${duration}…` : duration}
- - Started
- - +{formatMs(span.startMs - bounds[0])}
- - Span ID
- -
- {span.id}
- }
- onClick={() => copy(span.id)}
- />
-
+
+
+
- Duration
+ -
+ {isRunning ? `${duration}…` : duration}
+
+
+
+
- Started
+ -
+ +{formatMs(span.startMs - bounds[0])}
+
+
+
+
- Span ID
+ -
+ {span.id}
+ }
+ onClick={() => copy(span.id)}
+ />
+
+
)
@@ -349,7 +369,7 @@ export function Inspector({ spanId, emptyMessage, className, ...props }: Inspect
data-trace-inspector
data-empty={span ? undefined : ''}
className={cn(
- 'flex min-h-0 flex-col overflow-hidden border-l border-default bg-surface-100 text-sm',
+ 'flex min-h-0 flex-col overflow-hidden border-l border-default bg-surface-100 text-xs',
className
)}
{...props}
@@ -357,7 +377,7 @@ export function Inspector({ spanId, emptyMessage, className, ...props }: Inspect
{!span && (
{emptyMessage ?? 'Select a span to see its details'}