feat: Add viddeo support
This commit is contained in:
1 parent
18010722a2
commit
a6f5dce056
4 files changed
+29
-33
No files matched your search
@@ -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}
|
||||
|
||||
Reference in new issue
Block a user