Jump to content

Change gallery aspect ratio for mobile view

Recommended Posts

Site URL: https://www.snjc.world/

Hello!

I've set my aspect ratio setting at 55 for my gallery, wich looks just like I want on desktop version but when going in mobile view it looks way to small so I'd would like to increase it to 155 (so using a @media only screen and (max-width: 640px) or something like that). I can't find the css line that affects the aspect ratio of the gallery though.. Can someone help me out with that one ?

Thank you!

Capture d’écran 2021-03-07 005640.png

Link to comment
6 hours ago, sambarnes said:

Site URL: https://www.snjc.world/

Hello!

I've set my aspect ratio setting at 55 for my gallery, wich looks just like I want on desktop version but when going in mobile view it looks way to small so I'd would like to increase it to 155 (so using a @media only screen and (max-width: 640px) or something like that). I can't find the css line that affects the aspect ratio of the gallery though.. Can someone help me out with that one ?

Thank you!

Capture d’écran 2021-03-07 005640.png

I think custom css can help in this case, would you mind to send the site url to check?

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Lightbox Studio plugin
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment
12 hours ago, sambarnes said:

Sure, it's for the gallery on the main page of this website: https://www.snjc.world/

Thank you for your help!

this image with different ratio?

image.thumb.png.38c88988fa958da8133eea4e3c1789d0.png

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Lightbox Studio plugin
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment
  • 2 weeks later...
On 3/8/2021 at 7:41 PM, sambarnes said:

Yes! But I found a solution that works in the meantime; here is the code I use


@media screen and (max-width: 640px) {
.tweak-index-gallery-layout-slideshow .Index-gallery-wrapper:after {
  padding-bottom: 155% !important;
}
}

 

On Tablet, I see huge space here.. Do you want to fix this?

image.thumb.png.f3bf5041c952cdbdd90264b4ebdf2e09.png

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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

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.