From 58aecc0377c52c247b02ec67a193e51d4817a7c9 Mon Sep 17 00:00:00 2001 From: Louis Knight-Webb Date: Thu, 4 Dec 2025 17:27:10 +0000 Subject: [PATCH] Done. All three changes have been applied: (#1432) 1. Added `text-sm` to the container wrapper (line 190) 2. Removed redundant `text-sm` from the `paragraph` theme (line 102) 3. Removed redundant `text-sm` from the `code` theme (line 129) Now all markdown elements in the WYSIWYG editor will inherit `text-sm` from the container, ensuring consistent font sizing for paragraphs, lists, blockquotes, and other elements. --- frontend/src/components/ui/wysiwyg.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/components/ui/wysiwyg.tsx b/frontend/src/components/ui/wysiwyg.tsx index 0d7466e5..e460f704 100644 --- a/frontend/src/components/ui/wysiwyg.tsx +++ b/frontend/src/components/ui/wysiwyg.tsx @@ -99,7 +99,7 @@ function WYSIWYGEditor({ namespace: 'md-wysiwyg', onError: console.error, theme: { - paragraph: 'mb-2 last:mb-0 text-sm', + paragraph: 'mb-2 last:mb-0', heading: { h1: 'mt-4 mb-2 text-2xl font-semibold', h2: 'mt-3 mb-2 text-xl font-semibold', @@ -126,7 +126,7 @@ function WYSIWYGEditor({ strikethrough: 'line-through', code: 'font-mono bg-muted px-1 py-0.5 rounded', }, - code: 'block font-mono text-sm bg-secondary rounded-md px-3 py-2 my-2 whitespace-pre overflow-x-auto', + code: 'block font-mono bg-secondary rounded-md px-3 py-2 my-2 whitespace-pre overflow-x-auto', codeHighlight: CODE_HIGHLIGHT_CLASSES, }, nodes: [ @@ -187,7 +187,7 @@ function WYSIWYGEditor({ ); const editorContent = ( -
+