Jump to content

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

Go to solution Solved by Beyondspace,

Recommended Posts

  • pro 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?
  • Solution
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

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, Keyword Highlighter
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

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

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, Keyword Highlighter
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

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.