fix: padding in compact mode

This commit is contained in:
Xylight committed 2024-05-30 17:36:27 -07:00
1 parent 1c456ac499
commit 1d13f4b0be
5 files changed
+18 -9

No files matched your search

+5 -1
View File
@@ -5,6 +5,7 @@
export let source: string = ''
export let inline: boolean = false
export let noStyle: boolean = false
let rendered = ''
@@ -52,7 +53,10 @@
<div
bind:this={div}
class="break-words flex flex-col markdown gap-2 leading-[1.5] {$$props.class}"
class="{noStyle
? ''
: 'break-words flex flex-col markdown gap-2 leading-[1.5]'} {$$props.class}"
style={$$props.style}
>
{@html rendered}
</div>