feat: Add viddeo support

This commit is contained in:
Xyphyn committed 2023-07-13 10:59:10 -07:00
1 parent 18010722a2
commit a6f5dce056
4 files changed
+29 -33

No files matched your search

+2 -2
View File
@@ -84,10 +84,10 @@
alt={post.name}
class="rounded-md max-w-screen max-h-[80vh] mx-auto"
/>
{:else if isVideo(post.url)}
{:else if post.embed_video_url}
<!-- svelte-ignore a11y-media-has-caption -->
<video class="rounded-md max-w-screen max-h-[80vh] mx-auto">
<source src={post.url} />
<source src={post.embed_video_url} />
</video>
{/if}
{#if post.body}