mirror of
https://github.com/immich-app/immich.git
synced 2025-11-25 12:00:42 +09:00
fix(web): correctly use button and link elements (#7907)
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user