From 10fcaf2b927ff98ecf784f84cb292889aa00ae78 Mon Sep 17 00:00:00 2001 From: David Kaya Date: Wed, 15 Apr 2026 10:57:04 +0200 Subject: [PATCH] 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> --- src/renderer/lib/chatMarkdown.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/lib/chatMarkdown.tsx b/src/renderer/lib/chatMarkdown.tsx index 6706c14..b0a08d1 100644 --- a/src/renderer/lib/chatMarkdown.tsx +++ b/src/renderer/lib/chatMarkdown.tsx @@ -23,7 +23,7 @@ function CodeBlock({ language, children }: { language: string; children: string } return ( -
+
{language || 'text'}