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}
|
||||
embed_description={post.post.embed_description}
|
||||
embed_title={post.post.embed_title}
|
||||
compact={view == 'compact'}
|
||||
/>
|
||||
{/if}
|
||||
{#if post.post.body && !post.post.nsfw && view != 'compact'}
|
||||
|
||||
@@ -8,11 +8,12 @@
|
||||
export let nsfw: boolean = false
|
||||
export let embed_title: string | undefined = undefined
|
||||
export let embed_description: string | undefined = undefined
|
||||
export let compact: boolean = false
|
||||
|
||||
$: richURL = parseURL(url)
|
||||
</script>
|
||||
|
||||
{#if embed_title}
|
||||
{#if embed_title && !compact}
|
||||
<Material class="flex flex-row gap-4">
|
||||
<div class="flex flex-col gap-2">
|
||||
{#if richURL}
|
||||
|
||||
Reference in new issue
Block a user