mirror of
https://github.com/vercel/commerce.git
synced 2025-05-16 14:36:59 +00:00
Fix height on image card contente component
This commit is contained in:
parent
4be082fedc
commit
aaeca5b711
@ -12,18 +12,22 @@ export default function ImageCardContent(props: {
|
|||||||
<Box
|
<Box
|
||||||
className={props.style.imageContainer}
|
className={props.style.imageContainer}
|
||||||
w={'full'}
|
w={'full'}
|
||||||
height={'220px'}
|
|
||||||
>
|
>
|
||||||
|
<Image
|
||||||
<Image cursor={'pointer'} onClick={() => openFullScreen('resource-image')} id='resource-image' alt='Resource Image Not Found' src={props.resourcePath} />
|
objectFit={"cover"}
|
||||||
|
margin={"auto"}
|
||||||
|
cursor={'pointer'}
|
||||||
|
onClick={() => openFullScreen('resource-image')}
|
||||||
|
id='resource-image'
|
||||||
|
alt=''
|
||||||
|
src={props.resourcePath} />
|
||||||
</Box>
|
</Box>
|
||||||
|
|
||||||
<Box
|
<Box
|
||||||
p={5}
|
p={5}
|
||||||
className={props.style.captionContainer}>
|
className={props.style.captionContainer}>
|
||||||
|
|
||||||
<Stack mt={6} align={'center'}>
|
<Stack align={'center'}>
|
||||||
<Text padding={0} color={'gray.500'} fontSize={'sm'} align={'center'}>
|
<Text padding={0} color={'gray.500'} fontSize={'sm'} align={'center'}>
|
||||||
{props.resourceCaption}
|
{props.resourceCaption}
|
||||||
</Text>
|
</Text>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user