diff --git a/apps/web/components/common/rich-text-editor.css b/apps/web/components/common/rich-text-editor.css index 599a9555..47c3c416 100644 --- a/apps/web/components/common/rich-text-editor.css +++ b/apps/web/components/common/rich-text-editor.css @@ -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; diff --git a/apps/web/components/markdown/CodeBlock.tsx b/apps/web/components/markdown/CodeBlock.tsx index 6bdd4d2c..ef69afb4 100644 --- a/apps/web/components/markdown/CodeBlock.tsx +++ b/apps/web/components/markdown/CodeBlock.tsx @@ -141,7 +141,7 @@ export function CodeBlock({ if (mode === 'terminal') { return (
-) } @@ -151,7 +151,7 @@ export function CodeBlock({ if (isLoading || !highlighted) { return ({code}+{code}
-) } @@ -159,7 +159,7 @@ export function CodeBlock({ return ({code}+{code}
-) : ( )}{code}+{code}