fix(dashboard): spaces between cards
This commit is contained in:
parent
c94cbdfc77
commit
57d98fc83c
|
@ -37,7 +37,7 @@ const Dashboard = () => {
|
||||||
style={{
|
style={{
|
||||||
display: 'grid',
|
display: 'grid',
|
||||||
gridTemplateColumns: width < 1400 ? '1fr' : '1fr 1fr',
|
gridTemplateColumns: width < 1400 ? '1fr' : '1fr 1fr',
|
||||||
gap: '15px',
|
gap: '14px',
|
||||||
gridAutoFlow: 'row',
|
gridAutoFlow: 'row',
|
||||||
width: '100%',
|
width: '100%',
|
||||||
}}
|
}}
|
||||||
|
@ -56,38 +56,27 @@ const Dashboard = () => {
|
||||||
{width < 1400 ? (
|
{width < 1400 ? (
|
||||||
DashboardLayout(width)
|
DashboardLayout(width)
|
||||||
) : (
|
) : (
|
||||||
<Stack
|
<div
|
||||||
style={{
|
style={{
|
||||||
display: 'grid',
|
display: 'grid',
|
||||||
gridTemplateColumns: '1fr 1fr',
|
gridTemplateColumns: 'repeat(4, 1fr)', // Four columns, each taking up an equal portion of the available space
|
||||||
gap: '15px',
|
gap: '14px',
|
||||||
width: '100%',
|
width: '100%',
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<YStack space="$3">
|
<ConsensusUptimeCard />
|
||||||
<XStack space="$3" width={'100%'}>
|
<ExecutionUptime />
|
||||||
<ConsensusUptimeCard />
|
<StorageCard maxStorage={100} storage={182} />
|
||||||
<ExecutionUptime />
|
<CPUCard load={[12, 31, 3, 2, 24, 98]} />
|
||||||
</XStack>
|
<div style={{ gridColumn: 'span 2' }}>
|
||||||
<DeviceUptime />
|
<DeviceUptime />
|
||||||
</YStack>
|
</div>
|
||||||
<YStack space={'$3'}>
|
<MemoryCard currentMemory={[21, 33, 3, 42, 35]} maxMemory={50} />
|
||||||
<XStack space={'$3'}>
|
<NetworkCard
|
||||||
<StorageCard maxStorage={100} storage={182} />
|
downloadRate={[12, 31, 22, 12, 23, 23, 90]}
|
||||||
<CPUCard load={[12, 31, 3, 2, 24, 98]} />
|
uploadRate={[31, 22, 32, 132, 32, 45, 65]}
|
||||||
</XStack>
|
/>
|
||||||
<XStack space="$3">
|
</div>
|
||||||
<MemoryCard
|
|
||||||
currentMemory={[21, 33, 3, 42, 35]}
|
|
||||||
maxMemory={50}
|
|
||||||
/>
|
|
||||||
<NetworkCard
|
|
||||||
downloadRate={[12, 31, 22, 12, 23, 23, 90]}
|
|
||||||
uploadRate={[31, 22, 32, 132, 32, 45, 65]}
|
|
||||||
/>
|
|
||||||
</XStack>
|
|
||||||
</YStack>
|
|
||||||
</Stack>
|
|
||||||
)}
|
)}
|
||||||
</YStack>
|
</YStack>
|
||||||
</SidebarsWrapper>
|
</SidebarsWrapper>
|
||||||
|
@ -108,7 +97,7 @@ const DashboardLayout = (width: number) => {
|
||||||
style={{
|
style={{
|
||||||
display: 'grid',
|
display: 'grid',
|
||||||
gridTemplateColumns: width < 1240 ? '1fr 1fr' : '1fr 1fr 1fr 1fr',
|
gridTemplateColumns: width < 1240 ? '1fr 1fr' : '1fr 1fr 1fr 1fr',
|
||||||
gap: '15px',
|
gap: '14px',
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<StorageCard maxStorage={100} storage={82} />
|
<StorageCard maxStorage={100} storage={82} />
|
||||||
|
|
Loading…
Reference in New Issue