add max height to wrapper

This commit is contained in:
Hristo Nedelkov 2023-10-18 18:09:35 +03:00
parent 5921af3527
commit b8772ae64d
1 changed files with 3 additions and 0 deletions

View File

@ -7,6 +7,7 @@ type DashboardCardWrapperProps = {
height?: string
minWidth?: string
maxWidth?: string
maxHeight?: string
}
const DashboardCardWrapper = ({
@ -16,6 +17,7 @@ const DashboardCardWrapper = ({
height = 'auto',
minWidth = '0',
maxWidth,
maxHeight,
}: DashboardCardWrapperProps) => {
return (
<Shadow
@ -29,6 +31,7 @@ const DashboardCardWrapper = ({
backgroundColor: '$background',
minWidth: minWidth,
maxWidth: maxWidth,
maxHeight: maxHeight
}}
>
{children}