visitjamie Posted August 12, 2023 Share Posted August 12, 2023 When I view the site on a mobile the main navigation page is cropped, I'd like it to mirror the desktop appearance, so images are not cropped when displayed - is it possible to change this? Link to comment
visitjamie Posted August 12, 2023 Author Share Posted August 12, 2023 The URL is https://jamieroberts.london/ Link to comment
Lesum Posted August 12, 2023 Share Posted August 12, 2023 Hi, here's a code snippet to display the main navigation page on mobile view in the same manner as desktop view: @media only screen and (max-width: 640px) { body#collection-64d776f4e7e1d17768b92716 img.js-index-item-image { width: 100% !important; height: 100% !important; left: 0 !important; top: 0 !important; object-fit: cover !important; object-position: center !important; } body#collection-64d776f4e7e1d17768b92716 .index-item-height-large:not(.index-item-width-grid) .index-item { height: 30vh !important; } } If my comments were useful, please like or mark my solution as answer so others can scroll to it quickly. Sam Web Developer & Digital Designer ☕ Did you find my contribution helpful? Buy me a coffee? Link to comment
visitjamie Posted August 13, 2023 Author Share Posted August 13, 2023 Thank you Lesum, I tried adding this in the DESIGN > CUSTOM CSS pane but it didnt appear to change anything - am I doing it right? Images below, thanks Link to comment
Web_Solutions Posted August 13, 2023 Share Posted August 13, 2023 2 hours ago, visitjamie said: Thank you Lesum, I tried adding this in the DESIGN > CUSTOM CSS pane but it didnt appear to change anything - am I doing it right? Images below, thanks Remove the previous code and the code below. @media only screen and (max-width: 767px) { #collection-64d776f4e7e1d17768b92716.index-item-height-large:not(.index-item-width-grid) .index-item { height: 56vw !important; } } Kobir and visitjamie 1 1 If my comments are useful, please like and mark my solution as answer. It will encourage me. Thanks MD Rofik Website Designer and Digital Marketer ☕Am I helpful? Want to offer me a coffee? ✉ Send me a message if needed any help. I'll try to reply as soon as possible. Link to comment
visitjamie Posted August 13, 2023 Author Share Posted August 13, 2023 That has fixed the issue! Thanks so much Web Solutions and Lesum Link to comment
Web_Solutions Posted August 13, 2023 Share Posted August 13, 2023 You're welcome! Kobir and visitjamie 1 1 If my comments are useful, please like and mark my solution as answer. It will encourage me. Thanks MD Rofik Website Designer and Digital Marketer ☕Am I helpful? Want to offer me a coffee? ✉ Send me a message if needed any help. I'll try to reply as soon as possible. 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