fix: broken postmedia component

This commit is contained in:
Xylight committed 2024-07-11 15:43:28 -07:00
1 parent a9a0bce4b2
commit c9f588ae4d
1 file changed
+2 -27
@@ -20,10 +20,10 @@
@component
Thumbnails for compact and list view posts.
-->
<div
<div
class="w-24 sm:w-32 h-24 relative group/media {$$props.class ?? ''}"
style={$$props.style ?? ''}
>
>
{#if post.alt_text}
<Popover
openOnHover
@@ -43,31 +43,6 @@
</div>
</Popover>
{/if}
<svelte:element
this={!$userSettings.expandImages || type != 'image' ? 'a' : 'button'}
href={postLink(post)}
on:click={() => {
if (type == 'image') {
showImage(bestImageURL(post, false, 2048))
}
}}
role="button"
tabindex="0"
>
<Material
slot="target"
padding="none"
rounding="full"
elevation="high"
class="w-max absolute bottom-0 left-0 py-0.5 px-1.5 m-1 font-bold"
>
ALT
</Material>
<div class="max-w-sm">
{post.alt_text}
</div>
</Popover>
{/if}
<svelte:element
this={!$userSettings.expandImages || type != 'image' ? 'a' : 'button'}
href={postLink(post)}