Jump to content

Fix Gallery Carousel on Mobile View

Recommended Posts

14 minutes ago, emmebellish said:

Site URL: https://lime-kumquat-d247.squarespace.com/

Hello!

On my client's website, the desktop view looks like this:

1407442200_Screenshot2022-01-17at14_31_58.thumb.png.c78b9067ddc2b044679e847a925d9a05.png

 

But the mobile view looks like this:

893914856_Screenshot2022-01-17at14_32_10.thumb.png.f3b9ee4163d0bf104a70daa7dd46b5a9.png

 

How do I make the mobile view image maintain the same proportions as the desktop version?

 

The password is bap for the website.

Try adding to Home > Design > Custom Css

@media only screen and (max-width: 767px) {
  section[data-section-id="61e54c1ef576b31193b82e39"] .gallery-reel-list img {
    width: 100vw !important;
    height: auto !important;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
}

Let me know how it works on your site

 

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

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.