feat(web): Add metadata overlay to slideshow (#24627)

* feat: add slideshow metadata overlay and settings

* Introduced a new SlideshowMetadataOverlay component to display image information during slideshows.
* Updated slideshow settings modal to include options for showing the metadata overlay and selecting its display mode (Description Only or Full).
* Added corresponding translations and store management for the new overlay features.

* remove noisy log

* constant opacity

* 2nd pass

* more

* use text components

* lint
This commit is contained in:
Timon
2026-05-11 11:49:12 +02:00
committed by GitHub
parent 8c8dc9d32f
commit 271f1cb868
6 changed files with 127 additions and 3 deletions
+12
View File
@@ -19,6 +19,11 @@ export enum SlideshowLook {
BlurredBackground = 'blurred-background',
}
export enum SlideshowMetadataOverlayMode {
DescriptionOnly = 'description-only',
Full = 'full',
}
export const slideshowLookCssMapping: Record<SlideshowLook, string> = {
[SlideshowLook.Contain]: 'object-contain',
[SlideshowLook.Cover]: 'object-cover',
@@ -41,6 +46,11 @@ function createSlideshowStore() {
const slideshowTransition = persisted<boolean>('slideshow-transition', true);
const slideshowAutoplay = persisted<boolean>('slideshow-autoplay', true, {});
const slideshowRepeat = persisted<boolean>('slideshow-repeat', false);
const slideshowShowMetadataOverlay = persisted<boolean>('slideshow-show-metadata-overlay', false);
const slideshowMetadataOverlayMode = persisted<SlideshowMetadataOverlayMode>(
'slideshow-metadata-overlay-mode',
SlideshowMetadataOverlayMode.Full,
);
return {
restartProgress: {
@@ -73,6 +83,8 @@ function createSlideshowStore() {
slideshowTransition,
slideshowAutoplay,
slideshowRepeat,
slideshowShowMetadataOverlay,
slideshowMetadataOverlayMode,
};
}