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
  • Replies 6
  • Views 1k
  • Created
  • Last Reply
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?

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, 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

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, 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

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

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.