Order Sets - Grid layout

This commit is contained in:
Johnny Gear 2026-03-08 18:47:28 -05:00
parent bcee02a222
commit 30b92ba9d4

View file

@ -8,6 +8,7 @@ import {
Box,
RingProgress,
Alert,
Grid,
} from "@mantine/core";
import { IconAlertTriangle } from "@tabler/icons-react";
import { TimeValue } from "@mantine/dates";
@ -119,7 +120,7 @@ export const OrderSets: React.FC<OrderSetProps> = ({
}
}}
>
<Flex gap="md" wrap="wrap">
<Grid gutter="md">
{orderSets
? orderSets.map(
({
@ -133,6 +134,7 @@ export const OrderSets: React.FC<OrderSetProps> = ({
probability,
punishment_pool_name,
}) => (
<Grid.Col span={{ base: 12, sm: 6 }}>
<Card
key={id}
shadow="sm"
@ -140,7 +142,6 @@ export const OrderSets: React.FC<OrderSetProps> = ({
radius="md"
withBorder
bg="gray.2"
w="400px"
mb="0"
>
<Flex direction="column" gap="md" h="100%">
@ -218,10 +219,11 @@ export const OrderSets: React.FC<OrderSetProps> = ({
</Flex>
</Flex>
</Card>
</Grid.Col>
),
)
: null}
</Flex>
</Grid>
</div>
<Box my="lg">
<NavigateButton to={`/orders/${username}/new`}>