fix: double thumbnails in compact view
This commit is contained in:
1 parent
a4f3b9a98d
commit
429a140ad7
3 files changed
+6
-2
No files matched your search
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "photon-lemmy",
|
"name": "photon-lemmy",
|
||||||
"version": "1.17.1",
|
"version": "1.17.2",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite dev",
|
"dev": "vite dev",
|
||||||
|
|||||||
@@ -59,6 +59,7 @@
|
|||||||
nsfw={post.post.nsfw}
|
nsfw={post.post.nsfw}
|
||||||
saved={post.saved}
|
saved={post.saved}
|
||||||
/>
|
/>
|
||||||
|
{#if post.post.embed_title != post.post.name || view == 'compact'}
|
||||||
<a
|
<a
|
||||||
href="/post/{getInstance()}/{post.post.id}"
|
href="/post/{getInstance()}/{post.post.id}"
|
||||||
class="font-medium max-w-full w-full break-words text-base"
|
class="font-medium max-w-full w-full break-words text-base"
|
||||||
@@ -68,6 +69,7 @@
|
|||||||
>
|
>
|
||||||
<Markdown source={post.post.name} inline />
|
<Markdown source={post.post.name} inline />
|
||||||
</a>
|
</a>
|
||||||
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
{#if isImage(post.post.url)}
|
{#if isImage(post.post.url)}
|
||||||
{#if view == 'card' || view == 'cozy'}
|
{#if view == 'card' || view == 'cozy'}
|
||||||
|
|||||||
@@ -52,8 +52,9 @@
|
|||||||
</a>
|
</a>
|
||||||
{/if}
|
{/if}
|
||||||
</Material>
|
</Material>
|
||||||
{:else if thumbnail_url}
|
{:else}
|
||||||
<Link href={url} highlight nowrap />
|
<Link href={url} highlight nowrap />
|
||||||
|
{#if thumbnail_url && !compact}
|
||||||
<a href={url}>
|
<a href={url}>
|
||||||
<img
|
<img
|
||||||
src={thumbnail_url}
|
src={thumbnail_url}
|
||||||
@@ -64,4 +65,5 @@
|
|||||||
class:blur-3xl={nsfw}
|
class:blur-3xl={nsfw}
|
||||||
/>
|
/>
|
||||||
</a>
|
</a>
|
||||||
|
{/if}
|
||||||
{/if}
|
{/if}
|
||||||
Reference in new issue
Block a user