A user is troubleshooting spacing and layout issues in their Shopify store’s mobile menu after changing an SVG icon.
Primary Issues Addressed:
SVG icon spacing: Text appears too close to the custom SVG icon in the mobile menu. Multiple solutions provided involve adding CSS to base.css or custom.css files, using properties like margin-right or column-gap to create space between the icon and text.
Gap at page bottom: A small gap appears between the page content and bottom of the viewport. Fixed by modifying the bottom property in existing CSS code from a variable value to 0.
Mobile menu scroll behavior: When the menu drawer is open, users can still scroll the underlying page content. This issue affects multiple devices (not platform-specific). A contributor requested collaborator access to investigate and fix this more complex problem directly.
Current Status:
The spacing issues have been resolved. The scroll behavior problem remains open, with one contributor offering hands-on assistance through direct store access. Screenshots were shared throughout to illustrate the various issues.
Summarized with AI on November 7.
AI used: claude-sonnet-4-5-20250929.
Hello @Mtt1 , To create space between the text and the SVG icon, simply insert the provided code snippet into your custom.css or custom-style.css file where you handle your styling code.
@media only screen and (max-width: 750px) {
.menu-drawer__utility-links .menu-drawer__account{
column-gap: 1rem; /* adjust the colum-gap (spacing) value as per your requirement */
}
}
You can make this change by adding a simple line of css
First you need to open your base.css
Online Store > themes > Click on the three dots on your current theme > edit code > In left side bar top there will be a search box type base.css > the file will display below search box open it.
Paste this code in base.css
.menu-drawer__account {
gap:10px
}
If you need further assistance, feel free to reach out!
I hope this helps! If it does, please like it and mark it as a solution!
Yes, I know this error appeared when I moved the search bar to the left side. I was looking for external applications to create a search bar, which might solve this problem. But if you want to help in this matter, go ahead.
Regarding the first photo, you surprised me that it looks like this, everything is displayed correctly on my Android device.
I mean I wasn’t happy about space between menu content and header and country/language selector but now you also worried me that the menu is complete mess on other devices
I dont’t know. Now on my android device everything is working fine. When I added the code it just left that little gap on the bottom that you helped me with. Maybe there is an issue with IOS.
Let see if it is platform specific. Once you open the menu drawer, start scrolling the section with the foams logo. So right at the top of the screen around the black banner, if it still breaks as it does for iOS then we can create common fix for it all.
Ok, now I see the issue when I start scrolling from the header or when I use the scroll bar, the page starts sliding down. Well then I hope there is a way to fix it.