Skip to content

Commit ee63267

Browse files
chore: update gossip startup layout
1 parent 54b420c commit ee63267

File tree

2 files changed

+40
-47
lines changed

2 files changed

+40
-47
lines changed

src/features/StartupProgress/Firedancer/Gossip/gossip.module.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
.card {
22
flex-grow: 1;
3+
flex-shrink: 0;
34
display: flex;
45
flex-direction: column;
56
gap: 10px;

src/features/StartupProgress/Firedancer/Gossip/index.tsx

Lines changed: 39 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -46,55 +46,47 @@ export default function Gossip() {
4646
remainingSeconds={remainingSeconds}
4747
/>
4848

49-
<Flex gapX="162px" mt="52px">
50-
<Flex direction="column" gap="20px" flexGrow="1" flexBasis="1">
51-
<Flex justify="between" gap="20px" align="stretch">
52-
<GossipCard
53-
title="Staked Peers"
54-
value={health.connected_staked_peers.toLocaleString(undefined, {
55-
maximumFractionDigits: 0,
56-
})}
57-
/>
58-
<GossipCard
59-
title="Unstaked Peers"
60-
value={health.connected_unstaked_peers.toLocaleString(undefined, {
61-
maximumFractionDigits: 0,
62-
})}
63-
/>
64-
<GossipCard
65-
title="Connected Stake"
66-
value={formattedConnectedStake}
67-
/>
68-
</Flex>
69-
70-
<Flex direction="column" gap="10px">
71-
<Text className={styles.barTitle}>Ingress</Text>
72-
<Text className={styles.barValue}>
73-
{ingressThroughput
74-
? `${ingressThroughput.value} ${ingressThroughput.unit}/s`
75-
: "-- Mbit/s"}
76-
</Text>
77-
<Bars
78-
value={ingress.total_throughput ?? 0}
79-
max={MAX_THROUGHPUT_BYTES}
80-
/>
81-
</Flex>
49+
<Flex mt="52px" direction="column" gap="20px" flexGrow="1" flexBasis="1">
50+
<Flex justify="between" gap="20px" align="stretch" wrap="wrap">
51+
<GossipCard
52+
title="Staked Peers"
53+
value={health.connected_staked_peers.toLocaleString(undefined, {
54+
maximumFractionDigits: 0,
55+
})}
56+
/>
57+
<GossipCard
58+
title="Unstaked Peers"
59+
value={health.connected_unstaked_peers.toLocaleString(undefined, {
60+
maximumFractionDigits: 0,
61+
})}
62+
/>
63+
<GossipCard title="Connected Stake" value={formattedConnectedStake} />
64+
</Flex>
8265

83-
<Flex direction="column" gap="10px">
84-
<Text className={styles.barTitle}>Egress</Text>
85-
<Text className={styles.barValue}>
86-
{egressThroughput
87-
? `${egressThroughput.value} ${egressThroughput.unit}/s`
88-
: "-- Mbit/s"}
89-
</Text>
90-
<Bars
91-
value={egress.total_throughput ?? 0}
92-
max={MAX_THROUGHPUT_BYTES}
93-
/>
94-
</Flex>
66+
<Flex direction="column" gap="10px">
67+
<Text className={styles.barTitle}>Ingress</Text>
68+
<Text className={styles.barValue}>
69+
{ingressThroughput
70+
? `${ingressThroughput.value} ${ingressThroughput.unit}ps`
71+
: "-- Mbps"}
72+
</Text>
73+
<Bars
74+
value={ingress.total_throughput ?? 0}
75+
max={MAX_THROUGHPUT_BYTES}
76+
/>
9577
</Flex>
96-
<Flex flexGrow="1" flexBasis="1" justify="center">
97-
<Text>Stake Discovered</Text>
78+
79+
<Flex direction="column" gap="10px">
80+
<Text className={styles.barTitle}>Egress</Text>
81+
<Text className={styles.barValue}>
82+
{egressThroughput
83+
? `${egressThroughput.value} ${egressThroughput.unit}ps`
84+
: "-- Mbps"}
85+
</Text>
86+
<Bars
87+
value={egress.total_throughput ?? 0}
88+
max={MAX_THROUGHPUT_BYTES}
89+
/>
9890
</Flex>
9991
</Flex>
10092
</>

0 commit comments

Comments
 (0)