From effc80977a4ed732092254248f82363e52233171 Mon Sep 17 00:00:00 2001 From: sct Date: Mon, 4 Jan 2021 15:21:46 +0000 Subject: [PATCH] fix(frontend): adjust titlecard badge styling this commit aligns the badges, removes the border from the availability badge (replaces it with a light shadow) and also adds a new animation to the titlecard --- src/components/Slider/index.tsx | 2 +- src/components/TitleCard/index.tsx | 122 +++++++++++++++-------------- 2 files changed, 63 insertions(+), 61 deletions(-) diff --git a/src/components/Slider/index.tsx b/src/components/Slider/index.tsx index 743894df5..03923225e 100644 --- a/src/components/Slider/index.tsx +++ b/src/components/Slider/index.tsx @@ -207,7 +207,7 @@ const Slider: React.FC = ({
diff --git a/src/components/TitleCard/index.tsx b/src/components/TitleCard/index.tsx index 8e5f21e51..358ceab19 100644 --- a/src/components/TitleCard/index.tsx +++ b/src/components/TitleCard/index.tsx @@ -76,7 +76,7 @@ const TitleCard: React.FC = ({ onCancel={closeModal} />
= ({ role="link" tabIndex={0} > -
-
-
- {mediaType === 'movie' - ? intl.formatMessage(messages.movie) - : intl.formatMessage(messages.tvshow)} -
-
-
- {(currentStatus === MediaStatus.AVAILABLE || - currentStatus === MediaStatus.PARTIALLY_AVAILABLE) && ( -
- - - +
+
+
+
+ {mediaType === 'movie' + ? intl.formatMessage(messages.movie) + : intl.formatMessage(messages.tvshow)}
- )} - {currentStatus === MediaStatus.PENDING && ( -
- - - -
- )} - {currentStatus === MediaStatus.PROCESSING && ( -
- - - -
- )} +
+
+ {(currentStatus === MediaStatus.AVAILABLE || + currentStatus === MediaStatus.PARTIALLY_AVAILABLE) && ( +
+ + + +
+ )} + {currentStatus === MediaStatus.PENDING && ( +
+ + + +
+ )} + {currentStatus === MediaStatus.PROCESSING && ( +
+ + + +
+ )} +