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
+3 -7

No files matched your search

+1 -1
View File
@@ -101,7 +101,7 @@
<img <img
src={postRes.post.thumbnail_url} src={postRes.post.thumbnail_url}
alt={postRes.post.name} alt={postRes.post.name}
class="rounded-md max-h-[32rem] w-full max-w-full" class="rounded-md max-h-[16rem] w-full max-w-full"
/> />
</div> </div>
{/if} {/if}
-2
View File
@@ -48,7 +48,6 @@
<Post {post} /> <Post {post} />
{/each} {/each}
</div> </div>
<div>
<Button <Button
on:click={() => { on:click={() => {
$page.url.searchParams.set( $page.url.searchParams.set(
@@ -64,7 +63,6 @@
Next Next
</Button> </Button>
</div> </div>
</div>
<div class="hidden md:block"> <div class="hidden md:block">
{#await data.streamed.site} {#await data.streamed.site}
<StickyCard> <StickyCard>
-2
View File
@@ -51,7 +51,6 @@
{#each data.posts.posts as post} {#each data.posts.posts as post}
<Post {post} /> <Post {post} />
{/each} {/each}
<div>
<Button <Button
on:click={() => { on:click={() => {
$page.url.searchParams.set( $page.url.searchParams.set(
@@ -67,7 +66,6 @@
Next Next
</Button> </Button>
</div> </div>
</div>
<div class="hidden md:block"> <div class="hidden md:block">
{#await data.streamed.community} {#await data.streamed.community}
<Card> <Card>
+2 -2
View File
@@ -84,10 +84,10 @@
alt={post.name} alt={post.name}
class="rounded-md max-w-screen max-h-[80vh] mx-auto" 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 --> <!-- svelte-ignore a11y-media-has-caption -->
<video class="rounded-md max-w-screen max-h-[80vh] mx-auto"> <video class="rounded-md max-w-screen max-h-[80vh] mx-auto">
<source src={post.url} /> <source src={post.embed_video_url} />
</video> </video>
{/if} {/if}
{#if post.body} {#if post.body}