Jump to content

How can I increase mobile breakpoint and force the gallery to switch to single-column mobile layout at more than 640px?

Recommended Posts

  • abc changed the title to How can I increase mobile breakpoint and force the gallery to switch to single-column mobile layout at more than 640px?
  • Replies 3
  • Views 801
  • Created
  • Last Reply
14 minutes ago, Aurmont said:

Currently, my gallery switches from desktop layout to single-column mobile layout at 640px or less. I would like it to switch to mobile at 767px or less. Is it possible to achieve that with CSS?

My website URL: https://alan.photo

Thank you in advance.

try

@media only screen and (max-width: 768px) {
  .collection-type-gallery .grid-wrapper {
    height: auto !important;
  }
  .collection-type-gallery .grid-item-wrapper {
    position: static;
    width: 100% !important;
    height: auto !important;
    margin-bottom: 10px
  }
}

image.thumb.png.2ee0fdbc51c79d44ac235bff3cbf451a.png

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox, video lightbox and much more)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 No-code customisations for Squarespace
🚀 Learn how to rank new pages on Google in 48 hours!

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

Thank you, BaNgan.

Question for you (or anyone):

There's a code in one of the JS files that determines various mobile breakpoints:

var n = {
        isAuthenticated: document.documentElement.classList.contains("authenticated-account"),
        debug: !0,
        mobileBreakpoint: 640,
        tabletBreakpoint: 1024
    };

 

Is there a way to modify the above code through some sorta custom JS code workaround? Squarespace allows you to inject custom JS in the page header.

Link to comment
47 minutes ago, Aurmont said:

Thank you, BaNgan.

Question for you (or anyone):

There's a code in one of the JS files that determines various mobile breakpoints:

var n = {
        isAuthenticated: document.documentElement.classList.contains("authenticated-account"),
        debug: !0,
        mobileBreakpoint: 640,
        tabletBreakpoint: 1024
    };

 

Is there a way to modify the above code through some sorta custom JS code workaround? Squarespace allows you to inject custom JS in the page header.

Interesting, I am looking for more insight from others about this as well

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox, video lightbox and much more)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 No-code customisations for Squarespace
🚀 Learn how to rank new pages on Google in 48 hours!

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

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.