fix(ui): apply mono font directly to code/pre elements

Browser UA stylesheet sets font-family: monospace on <code> and <pre>,
overriding the inherited Geist Mono from parent containers. Apply
font-mono explicitly on these elements so they use the project's
monospace font instead of the browser default.
This commit is contained in:
Jiayuan 2026-03-30 23:27:09 +08:00
parent 1e2052c689
commit 83f325c586
2 changed files with 6 additions and 5 deletions

View file

@ -94,6 +94,7 @@
/* Code blocks */
.rich-text-editor pre {
font-family: var(--font-mono, ui-monospace, monospace);
background: var(--muted);
border-radius: var(--radius);
padding: 0.75rem 1rem;