Skip to content

Commit

Permalink
Align cards to the center of the deck
Browse files Browse the repository at this point in the history
  • Loading branch information
PapePathe committed Mar 3, 2024
1 parent 44e8c7d commit 96ce021
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions znet/js/baloot/components/PlayingCardsView.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react";
import { SimpleGrid } from "@chakra-ui/react";
import {Flex} from "@chakra-ui/react";
import CardView from "./CardView";

function PlayingCardsView({
Expand All @@ -11,11 +11,7 @@ function PlayingCardsView({
onClick,
}) {
return (
<SimpleGrid
spacing={2}
templateColumns="repeat(auto-fill, minmax(120px, 1fr))"
id={id}
>
<Flex id={id} justifyContent="center" gap="2">
{cards.map((c) => {
return c ? (
<CardView
Expand All @@ -28,7 +24,7 @@ function PlayingCardsView({
/>
) : null;
})}
</SimpleGrid>
</Flex>
);
}

Expand Down

0 comments on commit 96ce021

Please sign in to comment.