From 1f0f5eb49c86b56e610651c3aec21403912984f1 Mon Sep 17 00:00:00 2001 From: RPaetau Date: Tue, 10 Oct 2023 05:22:39 +0200 Subject: [PATCH] slideshow delay default values changed from 5000 to 5 seconds (#4186) * Update Lightbox.tsx to also change default delay here to 5 sec instead of 5000 * Update config.go to set default slideshow delay from 5000 sec to 5 sec --- internal/manager/config/config.go | 2 +- ui/v2.5/src/hooks/Lightbox/Lightbox.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/manager/config/config.go b/internal/manager/config/config.go index 76d37d2f685..113d3668524 100644 --- a/internal/manager/config/config.go +++ b/internal/manager/config/config.go @@ -184,7 +184,7 @@ const ( UI = "ui" - defaultImageLightboxSlideshowDelay = 5000 + defaultImageLightboxSlideshowDelay = 5 DisableDropdownCreatePerformer = "disable_dropdown_create.performer" DisableDropdownCreateStudio = "disable_dropdown_create.studio" diff --git a/ui/v2.5/src/hooks/Lightbox/Lightbox.tsx b/ui/v2.5/src/hooks/Lightbox/Lightbox.tsx index 5430bede94a..5b91673b2fd 100644 --- a/ui/v2.5/src/hooks/Lightbox/Lightbox.tsx +++ b/ui/v2.5/src/hooks/Lightbox/Lightbox.tsx @@ -70,7 +70,7 @@ const CLASSNAME_NAV = `${CLASSNAME}-nav`; const CLASSNAME_NAVIMAGE = `${CLASSNAME_NAV}-image`; const CLASSNAME_NAVSELECTED = `${CLASSNAME_NAV}-selected`; -const DEFAULT_SLIDESHOW_DELAY = 5000; +const DEFAULT_SLIDESHOW_DELAY = 5; const SECONDS_TO_MS = 1000; const MIN_VALID_INTERVAL_SECONDS = 1; const MIN_ZOOM = 0.1;