Jump to content

Cropping of Thumbnails in Galleries on Mobile

Go to solution Solved by tuanphan,

Recommended Posts

Hello, 

I am using gallery blocks on my website, using a portrait aspect ratio. I'm happy with how it looks on desktop, however on mobile, all of the images are getting cropped to a portrait aspect ratio - even though I have a mix of portrait and landscape images in the gallery. 

On mobile, is it possible to remove the selected aspect ratio in the gallery settings, and just have the image thumbnails appear uncropped, in their original apsect ratio? So a mix of portrait and landscape images just in a grid?

https://mcshane.squarespace.com/work/carstensz
password: bandit

Many thanks

Link to comment
  • Solution

You can use this to Website > Website Tools > Custom CSS

@media screen and (max-width:767px) {
div.blog-item-content .gallery-block img {
    width: 100% !important;
    height: auto !important;
    left: 0 !important;
    top: unset !important;
}
div.blog-item-content .gallery-block a {
    padding-bottom: unset !important;
    height: auto !important;
}
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.