Skip to content

Commit

Permalink
feat(card-stack): reduce cards on stack
Browse files Browse the repository at this point in the history
  • Loading branch information
guilhermebkel committed Apr 2, 2024
1 parent 9b2b3d6 commit 582dc37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/unoenty/src/pages/Table/CardStack/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<CardStackProps> = (props) => {
const cardStore = useCardStore()
Expand Down Expand Up @@ -141,7 +141,7 @@ const CardStack: React.FC<CardStackProps> = (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)",
}}
Expand Down

0 comments on commit 582dc37

Please sign in to comment.