Skip to content

Commit 25842b2

Browse files
committed
Dynamic scaling of devices per line
Note -- this may be reverted if it looks bad...
1 parent 253d5f9 commit 25842b2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pages/Devices.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const Devices = ({
2929
// const variant = useVariant();
3030
const variantName = useVariantName();
3131

32-
return (<Row className="row-cols row-cols-1 row-cols-xl-2 gy-4">
32+
return (<Row className="row-cols row-cols-1 row-cols-xl-2 gy-4 justify-content-center">
3333
{isLoading && <Col className="text-center">
3434
<LoadingIcon large/>
3535
</Col>}
@@ -39,7 +39,7 @@ const Devices = ({
3939
const isUnavailable = device?.statuses?.available === false;
4040
const isOpen = device?.statuses?.open === true;
4141

42-
return (<Col key={device.id}>
42+
return (<Col key={device.id} className={`col-xl-${2*deviceActions.length}`}>
4343
<Card>
4444
<Card.Header
4545
className={'text-start' + (variantName === "initlab" ? ' bg-primary text-light' : '')}>

0 commit comments

Comments
 (0)