mirror of
https://github.com/immich-app/immich.git
synced 2024-12-25 10:43:13 +02:00
fix(web): asset viewer navigation buttons (#7888)
This commit is contained in:
parent
3cd232f571
commit
41504b9a2c
@ -592,9 +592,9 @@
|
|||||||
|
|
||||||
{#if $slideshowState === SlideshowState.None && showNavigation}
|
{#if $slideshowState === SlideshowState.None && showNavigation}
|
||||||
<div class="z-[1001] column-span-1 col-start-1 row-span-1 row-start-2 mb-[60px] justify-self-start">
|
<div class="z-[1001] column-span-1 col-start-1 row-span-1 row-start-2 mb-[60px] justify-self-start">
|
||||||
<NavigationArea on:click={(e) => navigateAsset('previous', e)}
|
<NavigationArea onClick={(e) => navigateAsset('previous', e)} label="View previous asset">
|
||||||
><Icon path={mdiChevronLeft} size="36" /></NavigationArea
|
<Icon path={mdiChevronLeft} size="36" ariaHidden />
|
||||||
>
|
</NavigationArea>
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
@ -708,9 +708,9 @@
|
|||||||
|
|
||||||
{#if $slideshowState === SlideshowState.None && showNavigation}
|
{#if $slideshowState === SlideshowState.None && showNavigation}
|
||||||
<div class="z-[1001] col-span-1 col-start-4 row-span-1 row-start-2 mb-[60px] justify-self-end">
|
<div class="z-[1001] col-span-1 col-start-4 row-span-1 row-start-2 mb-[60px] justify-self-end">
|
||||||
<NavigationArea on:click={(e) => navigateAsset('next', e)}
|
<NavigationArea onClick={(e) => navigateAsset('next', e)} label="View next asset">
|
||||||
><Icon path={mdiChevronRight} size="36" /></NavigationArea
|
<Icon path={mdiChevronRight} size="36" ariaHidden />
|
||||||
>
|
</NavigationArea>
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
|
@ -1,9 +1,15 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
|
export let onClick: (e: MouseEvent) => void;
|
||||||
|
export let label: string;
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<!-- svelte-ignore a11y-no-static-element-interactions -->
|
<!-- svelte-ignore a11y-no-static-element-interactions -->
|
||||||
<div class="group flex h-full place-items-center" on:click on:keydown>
|
<!-- svelte-ignore a11y-click-events-have-key-events -->
|
||||||
<button class="mx-4 rounded-full p-3 text-gray-500 transition group-hover:bg-gray-500 group-hover:text-white">
|
<div class="group flex h-full place-items-center hover:cursor-pointer" on:click={onClick}>
|
||||||
|
<button
|
||||||
|
class="mx-4 rounded-full p-3 text-gray-500 transition group-hover:bg-gray-500 group-hover:text-white"
|
||||||
|
aria-label={label}
|
||||||
|
>
|
||||||
<slot />
|
<slot />
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user