But upon refreshing the browser Or if “Productos” is clicked again, they display properly, however, if any button is clicked again, the images reload incorrectly.
On the other hand, I’ve been looking inside the component to see which one adjusts the images, and it’s the image gallery, specifically the responsive option.
Could it be that some JavaScript isn’t working correctly?
How can I fix it so that the images are displayed correctly?
So, your way of setting this up is really interesting!
So, we were wondering about the implementation of the gallery at first, because there is a single gallery in a single collection entry which shows all images (but they seem to be static uploaded to the gallery)
As soon as you use the filter, SJ is loading the images in a different way (like you set it up).
Instead of /960x960/a.jpg it is just /960/a.jpg .
However, it looks like we are not applying the chosen aspect ratio to galleries that are mapped to a collection field. We will work on that and created a developer ticket.
The solution is the following CSS which has been added to your website:
// Fix aspect ratio for collection gallery
.ed-collection-container .ed-gallery img {
aspect-ratio: 1;
object-fit: cover;
}
Since it’s a Plesk site, it needs to be published again (which we cannot do) to apply the changes.