fix image height

This commit is contained in:
Julián Benegas 2020-10-23 17:41:25 -03:00
parent cbcf53c430
commit 6342eb21b8
2 changed files with 10 additions and 1 deletions

View File

@ -60,6 +60,15 @@
@apply absolute z-10 inset-0 flex items-center justify-center overflow-x-hidden;
}
.imageContainer {
& > div {
@apply h-full;
& > div {
@apply h-full;
}
}
}
.img {
@apply w-full h-auto max-h-full object-cover;
}

View File

@ -77,7 +77,7 @@ const ProductView: FC<Props> = ({ product, className }) => {
<div className={s.sliderContainer}>
<ProductSlider>
{product.images.edges?.map((image, i) => (
<div key={image?.node.urlXL}>
<div key={image?.node.urlXL} className={s.imageContainer}>
<Image
className={s.img}
src={image?.node.urlXL!}