Force minimum row height, narrower column max width (#275)

This commit is contained in:
Alec LaLonde
2021-01-14 20:19:06 -07:00
committed by GitHub
parent 59b6a035df
commit ceaae6dc1a
2 changed files with 2 additions and 2 deletions

View File

@@ -35,7 +35,7 @@ export const PlayerTile: React.FC<Props> = ({ player }) => (
style={{ backdropFilter: 'blur(7px)' }}
rounded="lg"
p="6"
maxW="30rem"
maxW="25rem" // (2 / 3.5) = ~0.571 aspect ratio desired
w="100%"
align="stretch"
position="relative"

View File

@@ -8,7 +8,7 @@ type Props = {
};
export const PlayerList: React.FC<Props> = ({ players }) => (
<SimpleGrid columns={[1, null, 2, 3]} spacing="8">
<SimpleGrid columns={[1, null, 2, 3]} spacing="8" autoRows="minmax(35rem, auto)">
{players.map((p) => (
<PlayerTile key={p.id} player={p} />
))}