added gifv attachment support
This commit is contained in:
parent
7ecd92fbed
commit
891aa09467
|
@ -29,7 +29,7 @@
|
||||||
<div class="post-media-container" data-count={post.files.length}>
|
<div class="post-media-container" data-count={post.files.length}>
|
||||||
{#each post.files as file}
|
{#each post.files as file}
|
||||||
<div class="post-media {file.type}" on:click|stopPropagation on:mouseup|stopPropagation>
|
<div class="post-media {file.type}" on:click|stopPropagation on:mouseup|stopPropagation>
|
||||||
{#if file.type === "image"}
|
{#if ["image", "gifv", "gif"].includes(file.type)}
|
||||||
<a href={file.url} target="_blank">
|
<a href={file.url} target="_blank">
|
||||||
<img src={file.url} alt={file.description} title={file.description} height="200" loading="lazy" decoding="async">
|
<img src={file.url} alt={file.description} title={file.description} height="200" loading="lazy" decoding="async">
|
||||||
</a>
|
</a>
|
||||||
|
|
Loading…
Reference in a new issue