fix: overflowing video, close #407

This commit is contained in:
Xylight committed 2024-08-18 13:58:41 -07:00
1 parent 486a0bddb9
commit cedfb53ba2
2 files changed
+2 -2

No files matched your search

@@ -102,7 +102,7 @@
{#if opened} {#if opened}
{#if type == 'video'} {#if type == 'video'}
<!-- svelte-ignore a11y-media-has-caption --> <!-- svelte-ignore a11y-media-has-caption -->
<video {autoplay} controls class="rounded-xl aspect-video"> <video {autoplay} controls class="rounded-xl aspect-video {$$props.class}">
<source src={url} /> <source src={url} />
</video> </video>
{:else} {:else}
@@ -24,7 +24,7 @@
url={href} url={href}
opened={true} opened={true}
autoplay={false} autoplay={false}
class="w-full" class="w-auto h-auto max-h-80 inline-block rounded-lg"
/> />
{:else} {:else}
<button <button