fix(CPU line): move line in the correct position
This commit is contained in:
parent
fb8b396e95
commit
5f8e2e482f
|
@ -59,14 +59,6 @@ const CPUCard = ({ load }: CPUCardProps) => {
|
||||||
flexGrow: '1',
|
flexGrow: '1',
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<YStack space={'$3'} justifyContent="space-between">
|
|
||||||
<Text size={15} weight={'semibold'}>
|
|
||||||
CPU
|
|
||||||
</Text>
|
|
||||||
<Text size={27} weight={'semibold'}>
|
|
||||||
{currentLoad} GB
|
|
||||||
</Text>
|
|
||||||
</YStack>
|
|
||||||
<Stack
|
<Stack
|
||||||
style={{
|
style={{
|
||||||
position: 'absolute',
|
position: 'absolute',
|
||||||
|
@ -79,6 +71,14 @@ const CPUCard = ({ load }: CPUCardProps) => {
|
||||||
>
|
>
|
||||||
<StandardLineChart data={chartData} />
|
<StandardLineChart data={chartData} />
|
||||||
</Stack>
|
</Stack>
|
||||||
|
<YStack space={'$3'} justifyContent="space-between">
|
||||||
|
<Text size={15} weight={'semibold'}>
|
||||||
|
CPU
|
||||||
|
</Text>
|
||||||
|
<Text size={27} weight={'semibold'}>
|
||||||
|
{currentLoad} GB
|
||||||
|
</Text>
|
||||||
|
</YStack>
|
||||||
</XStack>
|
</XStack>
|
||||||
<Separator borderColor={'#e3e3e3'} style={{ marginTop: 'auto' }} />
|
<Separator borderColor={'#e3e3e3'} style={{ marginTop: 'auto' }} />
|
||||||
<XStack space={'$4'} style={{ padding: '10px 16px' }}>
|
<XStack space={'$4'} style={{ padding: '10px 16px' }}>
|
||||||
|
|
Loading…
Reference in New Issue