Fix min-size on md code

This commit is contained in:
Gregory Schier
2025-07-27 08:54:44 -07:00
parent 5c6d6fb7e4
commit 372b15689d
2 changed files with 3 additions and 2 deletions

View File

@@ -46,7 +46,7 @@ export function MarkdownEditor({
defaultValue.length === 0 ? (
<p className="text-text-subtlest">No description</p>
) : (
<div className="overflow-y-auto max-h-full [&_*]:cursor-auto [&_*]:select-auto">
<div className="pr-1.5 overflow-y-auto max-h-full [&_*]:cursor-auto [&_*]:select-auto">
<Markdown className="max-w-lg select-auto cursor-auto">{defaultValue}</Markdown>
</div>
);
@@ -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,
)}
>

View File

@@ -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;