feat: enhance font styling in Diff Viewer and Streamdown components

This commit is contained in:
Bohdan Triapitsyn
2025-12-16 13:26:03 +02:00
parent c87815a2a6
commit 764a48018f
3 changed files with 18 additions and 0 deletions
+2
View File
@@ -1381,10 +1381,12 @@ html:not(.dark) .chat-scroll {
.streamdown-content code,
.streamdown-content pre {
font-family: var(--font-mono);
font-size: var(--text-code);
}
/* Streamdown code blocks: ensure light/dark Shiki vars work even when Tailwind doesn't scan Streamdown's internal class names. */
.streamdown-content [data-streamdown="code-block-body"] {
font-size: var(--text-code);
background-color: var(--shiki-light-bg, transparent);
color: var(--shiki-light, inherit);
}