fix: make alt text visible on post media compact

This commit is contained in:
James Xylight committed 2025-08-29 22:01:14 -07:00
1 parent 78393e8886
commit 3649c3b7a3
2 files changed
+13 -1

No files matched your search

@@ -15,6 +15,7 @@
ExclamationTriangle, ExclamationTriangle,
Icon, Icon,
Link, Link,
Photo,
VideoCamera, VideoCamera,
} from 'svelte-hero-icons' } from 'svelte-hero-icons'
@@ -154,6 +155,17 @@
/> />
{/if} {/if}
</svelte:element> </svelte:element>
{#if post.alt_text}
<Button
onclick={() => modal({ title: 'Alt text', body: post.alt_text })}
aria-label="Alt text"
class="absolute bottom-0 left-0 z-20 m-1"
size="square-md"
rounding="xl"
>
<Icon src={Photo} size="16" micro />
</Button>
{/if}
</div> </div>
<style> <style>
+1 -1
View File
@@ -51,7 +51,7 @@
/> />
<div class="sticky z-10 bottom-4 left-1/2 -translate-x-1/2 w-max"> <div class="sticky z-10 bottom-4 left-1/2 -translate-x-1/2 w-max">
<Material <Material
class="gap-1 p-0.5 px-1 flex flex-row items-center dark:bg-zinc-950/50 border-opacity-50" class="gap-1 p-0.5 px-1 flex flex-row items-center"
rounding="full" rounding="full"
padding="none" padding="none"
color="uniform" color="uniform"