abc Posted September 30, 2021 Share Posted September 30, 2021 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. Link to comment
Beyondspace Posted September 30, 2021 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 } } 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
abc 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 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
Recommended Posts
Archived
This topic is now archived and is closed to further replies.