add max height to wrapper
This commit is contained in:
parent
5921af3527
commit
b8772ae64d
|
@ -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}
|
||||||
|
|
Loading…
Reference in New Issue