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',
|
||||
}}
|
||||
>
|
||||
<YStack space={'$3'} justifyContent="space-between">
|
||||
<Text size={15} weight={'semibold'}>
|
||||
CPU
|
||||
</Text>
|
||||
<Text size={27} weight={'semibold'}>
|
||||
{currentLoad} GB
|
||||
</Text>
|
||||
</YStack>
|
||||
<Stack
|
||||
style={{
|
||||
position: 'absolute',
|
||||
|
@ -79,6 +71,14 @@ const CPUCard = ({ load }: CPUCardProps) => {
|
|||
>
|
||||
<StandardLineChart data={chartData} />
|
||||
</Stack>
|
||||
<YStack space={'$3'} justifyContent="space-between">
|
||||
<Text size={15} weight={'semibold'}>
|
||||
CPU
|
||||
</Text>
|
||||
<Text size={27} weight={'semibold'}>
|
||||
{currentLoad} GB
|
||||
</Text>
|
||||
</YStack>
|
||||
</XStack>
|
||||
<Separator borderColor={'#e3e3e3'} style={{ marginTop: 'auto' }} />
|
||||
<XStack space={'$4'} style={{ padding: '10px 16px' }}>
|
||||
|
|
Loading…
Reference in New Issue