fix: use theme-aware background for chat code blocks

Replace hard-coded dark hex color (bg-[#0d0d10]) with the theme-aware
bg-surface-1 token so the code block background correctly adapts to
light mode. The other zinc-based utility classes already respond to
the light mode CSS variable overrides.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
David Kaya
2026-04-15 10:57:04 +02:00
co-authored by Copilot
parent 34fb5420a4
commit 10fcaf2b92
+1 -1
View File
@@ -23,7 +23,7 @@ function CodeBlock({ language, children }: { language: string; children: string
}
return (
<div className="group relative my-3 overflow-hidden rounded-lg border border-zinc-800 bg-[#0d0d10]">
<div className="group relative my-3 overflow-hidden rounded-lg border border-zinc-800 bg-surface-1">
<div className="flex items-center justify-between border-b border-zinc-800/80 px-4 py-1.5">
<span className="select-none text-[11px] text-zinc-500">
{language || 'text'}