mirror of
https://github.com/immich-app/immich.git
synced 2026-05-18 03:10:24 +03:00
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:
@@ -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,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user