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 ( return (
<DashboardCardWrapper width="50%"> <DashboardCardWrapper height='fit-content' minWidth="536px">
<YStack space={'$4'} style={{ width: '100%' }}> <YStack space={'$4'} >
<XStack justifyContent={'space-between'}> <XStack justifyContent={'space-between'}>
<YStack> <YStack>
<Text size={15} weight={'semibold'}> <Text size={15} weight={'semibold'}>

View File

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