fix: hide embeds in compact view
This commit is contained in:
1 parent
f1cf69c2b6
commit
e21f3a0e55
2 files changed
+3
-1
No files matched your search
@@ -141,6 +141,7 @@
|
|||||||
nsfw={post.post.nsfw}
|
nsfw={post.post.nsfw}
|
||||||
embed_description={post.post.embed_description}
|
embed_description={post.post.embed_description}
|
||||||
embed_title={post.post.embed_title}
|
embed_title={post.post.embed_title}
|
||||||
|
compact={view == 'compact'}
|
||||||
/>
|
/>
|
||||||
{/if}
|
{/if}
|
||||||
{#if post.post.body && !post.post.nsfw && view != 'compact'}
|
{#if post.post.body && !post.post.nsfw && view != 'compact'}
|
||||||
|
|||||||
@@ -8,11 +8,12 @@
|
|||||||
export let nsfw: boolean = false
|
export let nsfw: boolean = false
|
||||||
export let embed_title: string | undefined = undefined
|
export let embed_title: string | undefined = undefined
|
||||||
export let embed_description: string | undefined = undefined
|
export let embed_description: string | undefined = undefined
|
||||||
|
export let compact: boolean = false
|
||||||
|
|
||||||
$: richURL = parseURL(url)
|
$: richURL = parseURL(url)
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
{#if embed_title}
|
{#if embed_title && !compact}
|
||||||
<Material class="flex flex-row gap-4">
|
<Material class="flex flex-row gap-4">
|
||||||
<div class="flex flex-col gap-2">
|
<div class="flex flex-col gap-2">
|
||||||
{#if richURL}
|
{#if richURL}
|
||||||
|
|||||||
Reference in new issue
Block a user