fix(viewer): fix monospace font rendering in pre/code blocks on Windows (#328)

This commit is contained in:
Nikunj Tyagi 2026-07-09 13:39:36 +05:30 committed by GitHub
parent 44ef6d7fc7
commit bf0af144fd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3,7 +3,7 @@
color-scheme: light dark; color-scheme: light dark;
/* Typography */ /* Typography */
--mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; --mono: "SF Mono", "Cascadia Code", Consolas, "Liberation Mono", "DejaVu Sans Mono", ui-monospace, SFMono-Regular, Menlo, "Courier New", monospace;
/* Surfaces */ /* Surfaces */
--bg: #f5f7fa; --bg: #f5f7fa;
@ -106,6 +106,10 @@ body {
padding-bottom: 2rem; padding-bottom: 2rem;
} }
code, pre {
font-family: var(--mono);
}
nav.breadcrumb { nav.breadcrumb {
background: var(--surface); background: var(--surface);
border-bottom: 1px solid var(--border); border-bottom: 1px solid var(--border);