fix: Allow codeblocks to expand to fit content

Note: Codeblocks can only be come up to 95% width of their container,
after that the `<pre>` will start scrolling.
This commit is contained in:
April Hall 2025-02-11 12:09:09 -05:00
parent f1932cf82e
commit 4149066d74
No known key found for this signature in database
GPG Key ID: A49AC35CB186266C

View File

@ -9,4 +9,6 @@
const { children, class: className = '' }: Props = $props();
</script>
<div class={className + ' prose prose-stone prose-blue dark:prose-invert'}>{@render children()}</div>
<div class={className + ' prose prose-stone prose-blue !max-w-full dark:prose-invert prose-pre:w-fit prose-pre:max-w-[95%] '}>
{@render children()}
</div>