From 372b15689d1fa51327df41c7cf19da1a6416066d Mon Sep 17 00:00:00 2001 From: Gregory Schier Date: Sun, 27 Jul 2025 08:54:44 -0700 Subject: [PATCH] Fix min-size on md code --- src-web/components/MarkdownEditor.tsx | 3 ++- src-web/components/Prose.css | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src-web/components/MarkdownEditor.tsx b/src-web/components/MarkdownEditor.tsx index cff9f2e6..1edce0c9 100644 --- a/src-web/components/MarkdownEditor.tsx +++ b/src-web/components/MarkdownEditor.tsx @@ -46,7 +46,7 @@ export function MarkdownEditor({ defaultValue.length === 0 ? (

No description

) : ( -
+
{defaultValue}
); @@ -59,6 +59,7 @@ export function MarkdownEditor({ className={classNames( 'group/markdown', 'relative w-full h-full pt-1.5 rounded-md gap-x-1.5', + 'min-w-0', // Not sure why this is needed className, )} > diff --git a/src-web/components/Prose.css b/src-web/components/Prose.css index 587c0895..d84877d7 100644 --- a/src-web/components/Prose.css +++ b/src-web/components/Prose.css @@ -116,7 +116,7 @@ pre { @apply bg-surface-highlight text-text !important; - @apply px-4 py-3 rounded-md; + @apply pl-4 py-3 rounded-md; @apply overflow-auto whitespace-pre; @apply text-editor font-mono;