design: post media compact is used on lists with embeds
This commit is contained in:
1 parent
6c047be49d
commit
80fff16671
2 files changed
+2
-2
No files matched your search
@@ -102,7 +102,7 @@
|
||||
{:else if type == 'embed' && post.url}
|
||||
<PostLink
|
||||
url={post.url}
|
||||
thumbnail_url={post.thumbnail_url}
|
||||
thumbnail_url={view != 'list' ? post.thumbnail_url : undefined}
|
||||
nsfw={post.nsfw}
|
||||
embed_description={post.embed_description}
|
||||
embed_title={post.embed_title}
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
export let type: MediaType = 'none'
|
||||
</script>
|
||||
|
||||
{#if view == 'compact' || (view == 'list' && (!post.embed_title || type == 'iframe') && type != 'none')}
|
||||
{#if view == 'compact' || (view == 'list' && type != 'none')}
|
||||
<div
|
||||
class="w-24 sm:w-32 h-24 relative group/media {$$props.class ?? ''}"
|
||||
style={$$props.style ?? ''}
|
||||
|
||||
Reference in new issue
Block a user