fix: double thumbnails in compact view

This commit is contained in:
Xyphyn committed 2023-10-05 16:52:02 -07:00
1 parent a4f3b9a98d
commit 429a140ad7
3 files changed
+6 -2

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "photon-lemmy",
"version": "1.17.1",
"version": "1.17.2",
"private": true,
"scripts": {
"dev": "vite dev",
@@ -59,6 +59,7 @@
nsfw={post.post.nsfw}
saved={post.saved}
/>
{#if post.post.embed_title != post.post.name || view == 'compact'}
<a
href="/post/{getInstance()}/{post.post.id}"
class="font-medium max-w-full w-full break-words text-base"
@@ -68,6 +69,7 @@
>
<Markdown source={post.post.name} inline />
</a>
{/if}
</div>
{#if isImage(post.post.url)}
{#if view == 'card' || view == 'cozy'}
@@ -52,8 +52,9 @@
</a>
{/if}
</Material>
{:else if thumbnail_url}
{:else}
<Link href={url} highlight nowrap />
{#if thumbnail_url && !compact}
<a href={url}>
<img
src={thumbnail_url}
@@ -65,3 +66,4 @@
/>
</a>
{/if}
{/if}