From 06d8353f4f5702f9b5bf67fb5f6ec84a3b016fa5 Mon Sep 17 00:00:00 2001 From: DingDongSoLong4 <99329275+DingDongSoLong4@users.noreply.github.com> Date: Wed, 18 Oct 2023 04:14:11 +0200 Subject: [PATCH] Fix tagger result styling (#4222) * Fix tagger result styling * Fix DEFAULT_SLIDESHOW_DELAY --- ui/v2.5/src/components/Performers/styles.scss | 3 -- .../Tagger/scenes/PerformerResult.tsx | 49 ++++++++++--------- .../components/Tagger/scenes/StudioResult.tsx | 49 ++++++++++--------- ui/v2.5/src/hooks/Lightbox/Lightbox.tsx | 2 +- 4 files changed, 51 insertions(+), 52 deletions(-) diff --git a/ui/v2.5/src/components/Performers/styles.scss b/ui/v2.5/src/components/Performers/styles.scss index f2d233725..1679ac337 100644 --- a/ui/v2.5/src/components/Performers/styles.scss +++ b/ui/v2.5/src/components/Performers/styles.scss @@ -208,10 +208,7 @@ .performer-disambiguation { color: $text-muted; - /* stylelint-disable */ font-size: 0.875em; - /* stylelint-enable */ - padding-right: 0.5rem; } .performer-result .performer-details > span { diff --git a/ui/v2.5/src/components/Tagger/scenes/PerformerResult.tsx b/ui/v2.5/src/components/Tagger/scenes/PerformerResult.tsx index 9d58f1f6f..27fe9bd69 100755 --- a/ui/v2.5/src/components/Tagger/scenes/PerformerResult.tsx +++ b/ui/v2.5/src/components/Tagger/scenes/PerformerResult.tsx @@ -15,16 +15,14 @@ import { getStashboxBase } from "src/utils/stashbox"; interface IPerformerName { performer: GQL.ScrapedPerformer | Performer; - className?: string; - baseURL: string | undefined; id: string | undefined | null; + baseURL: string | undefined; } const PerformerName: React.FC = ({ performer, - className, - baseURL, id, + baseURL, }) => { const name = baseURL && id ? ( @@ -36,14 +34,14 @@ const PerformerName: React.FC = ({ ); return ( - + <> {name} {performer.disambiguation && ( {` (${performer.disambiguation})`} )} - + ); }; @@ -117,12 +115,13 @@ const PerformerResult: React.FC = ({
: - + + +
= ({ : - + + +
@@ -169,12 +169,13 @@ const PerformerResult: React.FC = ({
: - + + +
@@ -137,9 +138,9 @@ const StudioResult: React.FC = ({ : diff --git a/ui/v2.5/src/hooks/Lightbox/Lightbox.tsx b/ui/v2.5/src/hooks/Lightbox/Lightbox.tsx index 03b8eaede..a3e72a50b 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 = 5; +const DEFAULT_SLIDESHOW_DELAY = 5000; const SECONDS_TO_MS = 1000; const MIN_VALID_INTERVAL_SECONDS = 1; const MIN_ZOOM = 0.1;