pro Posted September 30, 2021 Share Posted September 30, 2021 (edited) 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. Edited September 30, 2021 by Aurmont Beyondspace 1 Link to comment
Solution Beyondspace Posted September 30, 2021 Solution Share Posted September 30, 2021 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 } } pro 1 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 HighlighterIf 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
pro Posted September 30, 2021 Author Share Posted September 30, 2021 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
Beyondspace Posted September 30, 2021 Share Posted September 30, 2021 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 pro 1 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 HighlighterIf 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment