Skip to content

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

fix(trace): align media label (#11202)

Michael Fröhlichf7ccd8667769
diff --git a/web/src/components/trace2/components/IOPreview/components/SectionMedia.tsx b/web/src/components/trace2/components/IOPreview/components/SectionMedia.tsx
index d5f55611fc..4dc01e6b40 100644
--- a/web/src/components/trace2/components/IOPreview/components/SectionMedia.tsx
+++ b/web/src/components/trace2/components/IOPreview/components/SectionMedia.tsx
@@ -16,9 +16,7 @@ export function SectionMedia({ media }: SectionMediaProps) {
return (
<>
- <div className="mx-3 border-t px-2 py-1 text-xs text-muted-foreground">
- Media
- </div>
+ <div className="my-1 px-2 py-1 text-xs text-muted-foreground">Media</div>
<div className="flex flex-wrap gap-2 p-4 pt-1">
{media.map((m) => (
<LangfuseMediaView
diff --git a/web/src/components/ui/CodeJsonViewer.tsx b/web/src/components/ui/CodeJsonViewer.tsx
index f12614a391..e11dd3e156 100644
--- a/web/src/components/ui/CodeJsonViewer.tsx
+++ b/web/src/components/ui/CodeJsonViewer.tsx
@@ -137,7 +137,7 @@ export function JSONView(props: {
</div>
{props.media && props.media.length > 0 && (
<>
- <div className="mx-3 border-t px-2 py-1 text-xs text-muted-foreground">
+ <div className="my-1 px-0 py-1 text-xs text-muted-foreground">
Media
</div>
<div className="flex flex-wrap gap-2 p-4 pt-1">
diff --git a/web/src/components/ui/PrettyJsonView.tsx b/web/src/components/ui/PrettyJsonView.tsx
index 9a0ce223c0..f805bf26c2 100644
--- a/web/src/components/ui/PrettyJsonView.tsx
+++ b/web/src/components/ui/PrettyJsonView.tsx
@@ -1223,7 +1223,7 @@ export function PrettyJsonView(props: {
)}
{props.media && props.media.length > 0 && isPrettyView && (
<>
- <div className="mx-3 border-t px-2 py-1 text-xs text-muted-foreground">
+ <div className="my-1 px-2 py-1 text-xs text-muted-foreground">
Media
</div>
<div className="flex flex-wrap gap-2 p-4 pt-1">