Skip to content

Commit 249d04f

Browse files
chore: expand vertically stacked cards to fit width
1 parent 03303dc commit 249d04f

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/features/Overview/StatusCard/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import { voteDistanceAtom, voteStateAtom } from "../../../api/atoms";
1010

1111
export default function SlotStatusCard() {
1212
return (
13-
<Card>
14-
<Flex direction="column" height="100%" gap="2">
13+
<Card style={{ flexGrow: 1 }}>
14+
<Flex direction="column" height="100%" gap="2" align="start">
1515
<CardHeader text="Status" />
1616
<div className={styles.statRow}>
1717
<CurrentSlotText />

src/features/Overview/TransactionsCard/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import TransactionStats from "./TransactionStats";
77

88
export default function TransactionsCard() {
99
return (
10-
<Card style={{ flex: 1 }}>
10+
<Card style={{ flex: 100 }}>
1111
<Flex direction="column" height="100%" gap="2">
1212
<CardHeader text="Transactions" />
1313
<Flex gap="4" flexGrow="1">

src/features/Overview/ValidatorsCard/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export default function ValidatorsCard() {
1515
const delinquentLabel = formatNumberLamports(peerStats.delinquentStake);
1616

1717
return (
18-
<Card>
18+
<Card style={{ flexGrow: 1 }}>
1919
<Flex direction="column" height="100%" gap="2">
2020
<CardHeader text="Validators" />
2121
<Flex gap="2" flexGrow="1">
@@ -49,7 +49,7 @@ export default function ValidatorsCard() {
4949
/>
5050
</div>
5151
</Flex>
52-
<Box flexGrow="1" style={{ minWidth: "200px" }}>
52+
<Box style={{ minWidth: "200px" }}>
5353
<Chart
5454
activeStake={peerStats.activeStake}
5555
delinquentStake={peerStats.delinquentStake}

0 commit comments

Comments
 (0)