mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-24 09:38:29 +02:00
Fix min-size on md code
This commit is contained in:
@@ -46,7 +46,7 @@ export function MarkdownEditor({
|
|||||||
defaultValue.length === 0 ? (
|
defaultValue.length === 0 ? (
|
||||||
<p className="text-text-subtlest">No description</p>
|
<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>
|
<Markdown className="max-w-lg select-auto cursor-auto">{defaultValue}</Markdown>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
@@ -59,6 +59,7 @@ export function MarkdownEditor({
|
|||||||
className={classNames(
|
className={classNames(
|
||||||
'group/markdown',
|
'group/markdown',
|
||||||
'relative w-full h-full pt-1.5 rounded-md gap-x-1.5',
|
'relative w-full h-full pt-1.5 rounded-md gap-x-1.5',
|
||||||
|
'min-w-0', // Not sure why this is needed
|
||||||
className,
|
className,
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -116,7 +116,7 @@
|
|||||||
|
|
||||||
pre {
|
pre {
|
||||||
@apply bg-surface-highlight text-text !important;
|
@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 overflow-auto whitespace-pre;
|
||||||
@apply text-editor font-mono;
|
@apply text-editor font-mono;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user