mirror of
https://github.com/vercel/commerce.git
synced 2025-05-16 06:26:58 +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
|
||||
className={props.style.imageContainer}
|
||||
w={'full'}
|
||||
height={'220px'}
|
||||
>
|
||||
|
||||
<Image cursor={'pointer'} onClick={() => openFullScreen('resource-image')} id='resource-image' alt='Resource Image Not Found' src={props.resourcePath} />
|
||||
|
||||
<Image
|
||||
objectFit={"cover"}
|
||||
margin={"auto"}
|
||||
cursor={'pointer'}
|
||||
onClick={() => openFullScreen('resource-image')}
|
||||
id='resource-image'
|
||||
alt=''
|
||||
src={props.resourcePath} />
|
||||
</Box>
|
||||
|
||||
<Box
|
||||
p={5}
|
||||
className={props.style.captionContainer}>
|
||||
|
||||
<Stack mt={6} align={'center'}>
|
||||
<Stack align={'center'}>
|
||||
<Text padding={0} color={'gray.500'} fontSize={'sm'} align={'center'}>
|
||||
{props.resourceCaption}
|
||||
</Text>
|
||||
|
Loading…
x
Reference in New Issue
Block a user