From 0b97d9f73df925e5c3cd2ed4793c29b59f6fee7f Mon Sep 17 00:00:00 2001 From: DrMint Date: Sun, 15 May 2022 03:07:15 +0200 Subject: [PATCH] Added stacked previewCard effect even to cards without thumbnails --- src/components/PreviewCard.tsx | 49 +++++++++++++++++++++++----------- 1 file changed, 33 insertions(+), 16 deletions(-) diff --git a/src/components/PreviewCard.tsx b/src/components/PreviewCard.tsx index 30cf338..b18dc83 100644 --- a/src/components/PreviewCard.tsx +++ b/src/components/PreviewCard.tsx @@ -117,26 +117,34 @@ export function PreviewCard(props: Immutable): JSX.Element { hover:[--play-opacity:100] transition-transform [--stacked-top:0] hover:[--stacked-top:1]" > - {thumbnail && stackNumber > 0 && ( + {stackNumber > 0 && ( <> - +
+ {thumbnail && ( + + )} +
- + {thumbnail && ( + + )}
)} @@ -186,12 +194,21 @@ export function PreviewCard(props: Immutable): JSX.Element { ) : (
+ > + {stackNumber > 0 && ( +
+ {stackNumber} +
+ )} + )}