I would like to reduce the width of the navigation menu when on mobile view on the Dawn Theme.
I would like it so that it comes out to a width similar to what I’ve drawn on the attached image.
Thank you
A user wants to reduce the navigation menu width on mobile devices in Shopify’s Dawn theme.
Solution provided:
assets/base.css file:div#menu-drawer {
width: 60vw;
}
vw unit stands for viewport width (percentage of available screen width)Related question:
Another user asked about reducing menu height instead of width, but this remains unanswered. They included a screenshot showing their specific layout concern.
I would like to reduce the width of the navigation menu when on mobile view on the Dawn Theme.
I would like it so that it comes out to a width similar to what I’ve drawn on the attached image.
Thank you
Hi @BraxtonEcom
If you add the following to the bottom of your assets/base.css file, it should have the desired effect for mobile:
div#menu-drawer {
width: 60vw;
}
You can change the “60” for whatever other number you want between 1 and 100.
The vw stands for viewport width - effectively, you’re giving a percentage of the available screen width that you want that drawer to extend over.
Thank you :))