Skip to content

Commit

Permalink
clean up games cards
Browse files Browse the repository at this point in the history
  • Loading branch information
HoussamMrabet committed Jun 18, 2023
1 parent 1a6d4d4 commit 5d467cb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/GameCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ const GameCard = ({ game }: Props) => {
<>
<Image src={getCroppedImageUrl(game.background_image)}/>
<CardBody>
<Heading fontSize="md">{game.name}</Heading>
<HStack justifyContent="space-between">
<HStack justifyContent="space-between" marginBottom={3}>
<PlatformIconList platforms={game.parent_platforms.map(p => p.platform)} />
<CriticScore score={game.metacritic}/>
</HStack>
<Heading fontSize="md">{game.name}</Heading>
</CardBody>
</>
)
Expand Down
2 changes: 1 addition & 1 deletion src/components/GameGrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const GameGrid = ({ gameQuery }: Props) => {
<>
{error && <Text>{error}</Text>}
<SimpleGrid
columns={{ sm: 1, md: 2, lg: 3, xl: 5 }}
columns={{ sm: 1, md: 2, lg: 3, xl: 4 }}
spacing={3}
paddingY="10px"
>
Expand Down

0 comments on commit 5d467cb

Please sign in to comment.