Skip to content

Commit 11b7d8e

Browse files
committed
fix: use theme-aware colors for code_execution border
Changed border-white/20 to border-border so the fieldset border is visible in light mode. Also updated inner containers to use bg-code-bg and border-border/50 for theme consistency.
1 parent 2ff0e02 commit 11b7d8e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/browser/components/tools/CodeExecutionToolCall.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export const CodeExecutionToolCall: React.FC<CodeExecutionToolCallProps> = ({
4747
const isComplete = status === "completed" || status === "failed";
4848

4949
return (
50-
<fieldset className="flex flex-col gap-3 rounded-lg border border-dashed border-white/20 px-3 pt-2 pb-3">
50+
<fieldset className="flex flex-col gap-3 rounded-lg border border-dashed border-border px-3 pt-2 pb-3">
5151
{/* Legend title with status - sits on the border */}
5252
<legend className="flex items-center gap-2 px-2">
5353
<span className="text-foreground text-sm font-medium">Code Execution</span>
@@ -73,7 +73,7 @@ export const CodeExecutionToolCall: React.FC<CodeExecutionToolCallProps> = ({
7373
<span>Show code</span>
7474
</button>
7575
{codeExpanded && (
76-
<div className="mt-2 rounded border border-white/10 bg-black/20 p-2">
76+
<div className="bg-code-bg mt-2 rounded border border-border/50 p-2">
7777
<HighlightedCode language="javascript" code={args.code} />
7878
</div>
7979
)}
@@ -99,7 +99,7 @@ export const CodeExecutionToolCall: React.FC<CodeExecutionToolCallProps> = ({
9999
{consoleOutput.length > 0 && <span className="text-muted">({consoleOutput.length})</span>}
100100
</button>
101101
{consoleExpanded && (
102-
<div className="mt-2 rounded border border-white/10 bg-black/20 p-2">
102+
<div className="bg-code-bg mt-2 rounded border border-border/50 p-2">
103103
{consoleOutput.length > 0 ? (
104104
<ConsoleOutputDisplay output={consoleOutput} />
105105
) : (

0 commit comments

Comments
 (0)