fix: broken postmedia component
This commit is contained in:
1 parent
a9a0bce4b2
commit
c9f588ae4d
1 file changed
-25
@@ -43,31 +43,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</Popover>
|
</Popover>
|
||||||
{/if}
|
{/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
|
<svelte:element
|
||||||
this={!$userSettings.expandImages || type != 'image' ? 'a' : 'button'}
|
this={!$userSettings.expandImages || type != 'image' ? 'a' : 'button'}
|
||||||
href={postLink(post)}
|
href={postLink(post)}
|
||||||
|
|||||||
Reference in new issue
Block a user