G
G
greenorangeblue2022-01-15 21:39:19
Images
greenorangeblue, 2022-01-15 21:39:19

Product images in the catalog are not displayed correctly. How to fix?

Product images are not proportional
Have different formats > jpg, png, webp
In the catalog for each product, 2 previews are displayed, before hover and on hover

How to make them appear completely in their box?

Link

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
lexchz, 2022-01-15
@lexchz

.un-product-thumbnail {
position: relative;
padding-top: 100%;
}
.un-product-thumbnail img {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: contain;
}

But you need to remove the software hard crop for these pictures, because now they are all created with a size of 300*300, cutting off part of the picture.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question