From 7d4187962ad0b4ebc131390d39422b219a8e85d1 Mon Sep 17 00:00:00 2001 From: martin <74269598+martabal@users.noreply.github.com> Date: Sun, 21 Apr 2024 06:06:49 +0200 Subject: [PATCH] feat(web): new look option for slideshow (#8924) feat: new look option for slideshow --- .../asset-viewer/photo-viewer.svelte | 19 ++++++++++++++----- .../lib/components/slideshow-settings.svelte | 10 +++++++++- web/src/lib/stores/slideshow.store.ts | 2 ++ 3 files changed, 25 insertions(+), 6 deletions(-) diff --git a/web/src/lib/components/asset-viewer/photo-viewer.svelte b/web/src/lib/components/asset-viewer/photo-viewer.svelte index 6285a63006..2bf4ba4801 100644 --- a/web/src/lib/components/asset-viewer/photo-viewer.svelte +++ b/web/src/lib/components/asset-viewer/photo-viewer.svelte @@ -14,7 +14,7 @@ import LoadingSpinner from '../shared-components/loading-spinner.svelte'; import { NotificationType, notificationController } from '../shared-components/notification/notification'; import { getAltText } from '$lib/utils/thumbnail-util'; - import { slideshowLookCssMapping, SlideshowState, slideshowStore } from '$lib/stores/slideshow.store'; + import { SlideshowLook, slideshowLookCssMapping, SlideshowState, slideshowStore } from '$lib/stores/slideshow.store'; const { slideshowState, slideshowLook } = slideshowStore; @@ -150,15 +150,24 @@
{#if !imageLoaded} - +
+ +
{:else} -
+
+ {#if $slideshowState !== SlideshowState.None && $slideshowLook === SlideshowLook.BlurredBackground} + {getAltText(asset)} + {/if}