fix: make alt text visible on post media compact
This commit is contained in:
2 files changed
+13
-1
No files matched your search
@@ -15,6 +15,7 @@
|
||||
ExclamationTriangle,
|
||||
Icon,
|
||||
Link,
|
||||
Photo,
|
||||
VideoCamera,
|
||||
} from 'svelte-hero-icons'
|
||||
|
||||
@@ -154,6 +155,17 @@
|
||||
/>
|
||||
{/if}
|
||||
</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>
|
||||
|
||||
<style>
|
||||
|
||||
@@ -51,7 +51,7 @@
|
||||
/>
|
||||
<div class="sticky z-10 bottom-4 left-1/2 -translate-x-1/2 w-max">
|
||||
<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"
|
||||
padding="none"
|
||||
color="uniform"
|
||||
|
||||
Reference in new issue
Block a user