Plesk | Collection Listing - Images don't load properly

Hey there!

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.

Hope this helps!

1 Like