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