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}
|
{:else if type == 'embed' && post.url}
|
||||||
<PostLink
|
<PostLink
|
||||||
url={post.url}
|
url={post.url}
|
||||||
thumbnail_url={post.thumbnail_url}
|
thumbnail_url={view != 'list' ? post.thumbnail_url : undefined}
|
||||||
nsfw={post.nsfw}
|
nsfw={post.nsfw}
|
||||||
embed_description={post.embed_description}
|
embed_description={post.embed_description}
|
||||||
embed_title={post.embed_title}
|
embed_title={post.embed_title}
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
export let type: MediaType = 'none'
|
export let type: MediaType = 'none'
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
{#if view == 'compact' || (view == 'list' && (!post.embed_title || type == 'iframe') && type != 'none')}
|
{#if view == 'compact' || (view == 'list' && type != 'none')}
|
||||||
<div
|
<div
|
||||||
class="w-24 sm:w-32 h-24 relative group/media {$$props.class ?? ''}"
|
class="w-24 sm:w-32 h-24 relative group/media {$$props.class ?? ''}"
|
||||||
style={$$props.style ?? ''}
|
style={$$props.style ?? ''}
|
||||||
|
|||||||
Reference in new issue
Block a user