Merge branch 'main' into infinite-scroll
This commit is contained in:
commit
c8efc4c44b
6 files changed
+21
-16
No files matched your search
@@ -80,7 +80,7 @@
|
||||
}}
|
||||
class="absolute bottom-0 left-0 text-sm m-2 text-left"
|
||||
size="sm"
|
||||
rounding="pill"
|
||||
rounding="lg"
|
||||
alignment="left"
|
||||
>
|
||||
{#if showAltText}
|
||||
@@ -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,13 +17,16 @@
|
||||
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 ?? ''}
|
||||
>
|
||||
{#if post.alt_text}
|
||||
<Popover openOnHover placement="bottom-end">
|
||||
<Popover
|
||||
openOnHover
|
||||
placement={$userSettings.leftAlign ? 'bottom-start' : 'bottom-end'}
|
||||
>
|
||||
<Material
|
||||
slot="target"
|
||||
padding="none"
|
||||
|
||||
Reference in new issue
Block a user