How can I adjust the width of a drop down menu in the Dawn theme?

Topic summary

A user seeks to reduce the width of dropdown menus in the Dawn theme so they fit the text content rather than extending full-width.

Proposed Solution:

  • Navigate to Online Store → Theme → Edit code
  • Locate component-list-menu.css in the Assets folder
  • Add CSS code at the bottom: details.header__submenu > ul { width: max-content !important; }

Implementation Issues:

  • The original poster reported the suggested file doesn’t exist in their theme and the fix didn’t work
  • An alternative suggestion was made to adjust settings via Customize → Sections → Header → Desktop menu type

Outcome:

  • Two other users confirmed the CSS solution worked successfully for them in Dawn and Craft themes
  • The original poster’s issue remains unresolved, as they couldn’t locate the specified file
Summarized with AI on November 11. AI used: claude-sonnet-4-5-20250929.

The drop down menu on my site looks like this, i want to change the width of dropdown (only equal to size of text, just like other sites)

Thanks in advance for helping me out, I’m using dawn theme and my site is dealsoye.pk

Hi @am_i_abdullah ,

This is Kate from PageFly - Landing page builder, I’d like to suggest this idea:
Step 1: Go to Online Store->Theme->Edit code
Step 2: Asset->/component-list-menu.css->paste below code at the bottom of the file:

.js details>.header__submenu {
    width: max-content !important;
}

I hope it would help you
Best regards,

Kate | PageFly

2 Likes

there’s no file named theme.scss.liquid

not working

@LitCommerce kindly help me

Hi @am_i_abdullah ,

Please go to Customize > Sections > Header > Desktop menu type.

you can change it here, it will display fine

1 Like

Thanks Kate, this worked well!

1 Like

it worked thanks! theme Craft