From 582dc3725e1e534f500ada834613e1fc98c208e6 Mon Sep 17 00:00:00 2001 From: Guilherme Mota Date: Tue, 2 Apr 2024 20:15:32 -0300 Subject: [PATCH] feat(card-stack): reduce cards on stack --- packages/unoenty/src/pages/Table/CardStack/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/unoenty/src/pages/Table/CardStack/index.tsx b/packages/unoenty/src/pages/Table/CardStack/index.tsx index c042377..3566dfe 100644 --- a/packages/unoenty/src/pages/Table/CardStack/index.tsx +++ b/packages/unoenty/src/pages/Table/CardStack/index.tsx @@ -23,7 +23,7 @@ type CardStackProps = { let lastAmountToBuy = 0 -const MAX_CARDS_VISIBLE_ON_CARD_STACK = 10 +const MAX_CARDS_VISIBLE_ON_CARD_STACK = 5 const CardStack: React.FC = (props) => { const cardStore = useCardStore() @@ -141,7 +141,7 @@ const CardStack: React.FC = (props) => { alt={card.name} src={card.src} style={{ - transform: `rotate(${index * (-2)}deg)`, + transform: `rotate(${index * (-4)}deg)`, zIndex: MAX_CARDS_VISIBLE_ON_CARD_STACK - index, filter: (index === 0) ? "saturate(1.5)" : "contrast(0.5)", }}