fix maxWidths of uptime cards

This commit is contained in:
Hristo Nedelkov 2023-10-31 11:31:50 +02:00
parent e76ceb301c
commit d14fd3028c
3 changed files with 7 additions and 7 deletions

View File

@ -9,7 +9,7 @@ const ConsensusUptimeCard = () => {
const monthlyActivity = [3, 0, 5, 4, 6, 7, 8, 9, 10, 1, 2, 3] const monthlyActivity = [3, 0, 5, 4, 6, 7, 8, 9, 10, 1, 2, 3]
return ( return (
<DashboardCardWrapper > <DashboardCardWrapper maxWidth='40%'>
<YStack space={'$3'}> <YStack space={'$3'}>
<YStack> <YStack>
<Text size={15} weight={'semibold'}> <Text size={15} weight={'semibold'}>

View File

@ -28,7 +28,7 @@ const DeviceUptime = () => {
} }
return ( return (
<DashboardCardWrapper > <DashboardCardWrapper maxWidth='70%' >
<YStack space={'$3'}> <YStack space={'$3'}>
<XStack justifyContent={'space-between'}> <XStack justifyContent={'space-between'}>
<YStack> <YStack>

View File

@ -8,7 +8,7 @@ import DashboardCardWrapper from '../DashboardCardWrapper'
const ExecutionUptime = () => { const ExecutionUptime = () => {
const monthlyActivity = [3, 0, 5, 4, 6, 7, 0, 9, 10, 1, 2, 3] const monthlyActivity = [3, 0, 5, 4, 6, 7, 0, 9, 10, 1, 2, 3]
return ( return (
<DashboardCardWrapper > <DashboardCardWrapper maxWidth='40%' >
<YStack space={'$3'} minHeight={'156px'} padding={'$3'}> <YStack space={'$3'} minHeight={'156px'} padding={'$3'}>
<YStack> <YStack>
<Text size={15} weight={'semibold'}> <Text size={15} weight={'semibold'}>
@ -35,10 +35,10 @@ const ExecutionUptime = () => {
}} }}
> >
<UptimeChart <UptimeChart
monthlyActivity={monthlyActivity}
startMonth={0} startMonth={0}
endMonth={8} endMonth={3}
withLabels={false} monthlyActivity={[10, 1, 3, 4, 5, 1, 7, 1, 6, 3, 1, 9]}
withLabels={true}
/> />
</Stack> </Stack>
</XStack> </XStack>