From 075b4e74e1d8608adc80cf65fadfa11d4d765b6c Mon Sep 17 00:00:00 2001 From: Quentin Gliech Date: Sun, 5 Apr 2026 21:13:40 +0200 Subject: [PATCH] fix(web): use bg-muted as fallback for non-highlighted code blocks Shiki's .shiki class overrides the background with its theme color. For code blocks without a language (no Shiki), bg-muted provides a visible container. This ensures both highlighted and plain code blocks look correct in light and dark mode. Co-Authored-By: Claude Opus 4.6 (1M context) --- webui2/src/components/content/markdown.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/webui2/src/components/content/markdown.tsx b/webui2/src/components/content/markdown.tsx index 2b7972f66c52565169d11dba082578bae1a47deb..1dd4dca6f73455d0a163525fe9ab4a4c86ea91f6 100644 --- a/webui2/src/components/content/markdown.tsx +++ b/webui2/src/components/content/markdown.tsx @@ -178,8 +178,9 @@ export function Markdown({ content, className, repoContext }: MarkdownProps) {