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