fix: invalid cursor-pointer for images

This commit is contained in:
James Xylight committed 2025-07-10 18:13:00 -07:00
1 parent 4e82f38482
commit 21a250c9a1
2 files changed
+5 -5

No files matched your search

@@ -23,7 +23,7 @@
let { href, title = undefined, text = '' }: Props = $props()
let type = $derived(mediaType(href, 'cozy'))
let type = $derived(mediaType(href))
</script>
<div
@@ -37,11 +37,11 @@
url={href}
opened={true}
autoplay={false}
class="w-auto h-auto max-h-80 inline-block rounded-lg"
class="w-auto h-auto max-h-80 inline-block rounded-lg cursor-pointer"
/>
{:else}
<button
class="inline"
class="inline cursor-pointer"
onclick={() => showImage(optimizeImageURL(href, -1))}
>
<img
@@ -57,7 +57,7 @@
{:else}
<button
onclick={() => (loaded = true)}
class="w-40 h-40 flex flex-col justify-center items-center gap-4 p-2 group"
class="w-40 h-40 flex flex-col justify-center items-center gap-4 p-2 group cursor-pointer"
title={$t('common.download')}
>
<Icon
+1 -1
View File
@@ -61,7 +61,7 @@
>
<Button
onclick={() => {
navigator.clipboard.writeText(page.state.openImage)
navigator.clipboard.writeText(page.state?.openImage ?? '')
toast({ content: $t('toast.copied') })
}}
color="tertiary"