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 { href, title = undefined, text = '' }: Props = $props()
let type = $derived(mediaType(href, 'cozy')) let type = $derived(mediaType(href))
</script> </script>
<div <div
@@ -37,11 +37,11 @@
url={href} url={href}
opened={true} opened={true}
autoplay={false} 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} {:else}
<button <button
class="inline" class="inline cursor-pointer"
onclick={() => showImage(optimizeImageURL(href, -1))} onclick={() => showImage(optimizeImageURL(href, -1))}
> >
<img <img
@@ -57,7 +57,7 @@
{:else} {:else}
<button <button
onclick={() => (loaded = true)} 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')} title={$t('common.download')}
> >
<Icon <Icon
+1 -1
View File
@@ -61,7 +61,7 @@
> >
<Button <Button
onclick={() => { onclick={() => {
navigator.clipboard.writeText(page.state.openImage) navigator.clipboard.writeText(page.state?.openImage ?? '')
toast({ content: $t('toast.copied') }) toast({ content: $t('toast.copied') })
}} }}
color="tertiary" color="tertiary"