Skip to content

Commit 46e4a74

Browse files
authored
feat: add custom renderer color, add handle (#955)
* feat: add custom renderer color, add handle * feat: add semicolons
1 parent 3003b2c commit 46e4a74

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

frontend/components/traces/span-view/common.tsx

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Bolt, ChevronRight } from "lucide-react";
1+
import { Bolt, ChevronRight, GripHorizontal } from "lucide-react";
22
import { Resizable } from "re-resizable";
33
import React, { memo, PropsWithChildren, ReactNode } from "react";
44

@@ -41,6 +41,20 @@ export const ResizableWrapper = ({
4141
enable={{
4242
bottom: true,
4343
}}
44+
handleComponent={{
45+
bottom: (
46+
<div className="flex items-center justify-center w-full h-2 cursor-ns-resize hover:bg-accent/50 transition-colors group">
47+
<GripHorizontal className="w-4 h-4 text-muted-foreground" />
48+
</div>
49+
),
50+
}}
51+
handleStyles={{
52+
bottom: {
53+
bottom: 0,
54+
height: "8px",
55+
cursor: "ns-resize",
56+
},
57+
}}
4458
className={cn("relative flex h-full w-full", className)}
4559
>
4660
{children}

frontend/components/ui/template-renderer/jsx-renderer.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@ const createIframeContent = (templateCode: string, data: any): string => {
4242
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
4343
line-height: 1.5;
4444
background: #0A0A0A;
45+
color: #FAFAFA;
46+
}
47+
48+
.error {
49+
color: #CC3333;
4550
}
4651
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
4752
</style>

0 commit comments

Comments
 (0)