fix BalanceChartCard
This commit is contained in:
parent
ade4febd5a
commit
fd151db978
|
@ -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'}>
|
||||||
|
|
|
@ -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}
|
||||||
|
|
Loading…
Reference in New Issue