mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
fix(web): correctly use button and link elements (#7907)
This commit is contained in:
parent
67b209808f
commit
b07ed3f615
2 changed files with 64 additions and 81 deletions
|
|
@ -1,5 +1,4 @@
|
|||
<script lang="ts">
|
||||
import { goto } from '$app/navigation';
|
||||
import Icon from '$lib/components/elements/icon.svelte';
|
||||
import { AppRoute } from '$lib/constants';
|
||||
import { getAssetThumbnailUrl } from '$lib/utils';
|
||||
|
|
@ -122,15 +121,9 @@
|
|||
{/if}
|
||||
|
||||
{#if !link.expiresAt || !isExpired(link.expiresAt)}
|
||||
<!-- svelte-ignore a11y-no-static-element-interactions -->
|
||||
<div
|
||||
class="hover:cursor-pointer"
|
||||
title="Go to share page"
|
||||
on:click={() => goto(`${AppRoute.SHARE}/${link.key}`)}
|
||||
on:keydown={() => goto(`${AppRoute.SHARE}/${link.key}`)}
|
||||
>
|
||||
<a href="{AppRoute.SHARE}/{link.key}" title="Go to share page">
|
||||
<Icon path={mdiOpenInNew} />
|
||||
</div>
|
||||
</a>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue