Grid cropping image?

https://www.mottandbow.com/pages/the-best-relaxed-fit-t-shirt-for-womens?_ab=0&_fd=0&_sc=1&preview_theme_id=148521779388 In this page, in the component "One or Another" in mobile view the main images are not having the same size, even thought they are the same image, they have the same grid column fraction
Mott & Bow
The best relaxed fit t shirt for womens
Explore premium denim, tees, polos, loungewear, jackets & more—luxuriously soft, expertly crafted, and always stylish. Free shipping over $150.
No description
11 Replies
13eck
13eck•5w ago
Holy hell, that console is chatty
13eck
13eck•5w ago
Kypac
KypacOP•5w ago
hahaha i also hate that but the other developers leave it like that so I won't touch it
13eck
13eck•5w ago
So your question is what, exactly? Why they're different sizes on the page when they're the same grid locations and image URL?
Kypac
KypacOP•5w ago
Yep They don't have the same spacing in the grid even thought I have set it to have the same spacing as well
13eck
13eck•5w ago
The images are conforming to their parent picture elements that are different sizes
Mannix
Mannix•5w ago
it's the fixed width on .ooa__thumb that is causing the issue even tho you set 2 equal columns they are not even
Kypac
KypacOP•5w ago
I don't set the sizes for this element, how can they be different? Should I set a size they have the asme size? that is not where the issue is? those thumbs images are rendering and having the right size
Mannix
Mannix•5w ago
but they are breaking the grid you set two equal columns with 1fr 1fr but they are not equal that is why one of the pictures is smaller you could also set the align-items: stretch; for the grid now it's set to start
Kypac
KypacOP•5w ago
thank you so much!
13eck
13eck•5w ago
Props to @Mannix for being able to wade through all those weird classes and figure it out 👏

Did you find this page helpful?