fix BalanceChartCard

This commit is contained in:
Hristo Nedelkov 2023-10-13 18:26:44 +03:00
parent ade4febd5a
commit fd151db978
2 changed files with 5 additions and 2 deletions

View File

@ -37,8 +37,8 @@ const BalanceChartCard = () => {
}
return (
<DashboardCardWrapper width="50%">
<YStack space={'$4'} style={{ width: '100%' }}>
<DashboardCardWrapper height='fit-content' minWidth="536px">
<YStack space={'$4'} >
<XStack justifyContent={'space-between'}>
<YStack>
<Text size={15} weight={'semibold'}>

View File

@ -5,6 +5,7 @@ type DashboardCardWrapperProps = {
padding?: string
width: string
height?: string
minWidth?: string
}
const DashboardCardWrapper = ({
@ -12,6 +13,7 @@ const DashboardCardWrapper = ({
padding = '12px 16px',
width,
height,
minWidth
}: DashboardCardWrapperProps) => {
return (
<Shadow
@ -23,6 +25,7 @@ const DashboardCardWrapper = ({
borderRadius: '16px',
padding,
backgroundColor: '$background',
minWidth: minWidth
}}
>
{children}