wjh18 / hugo-liftoff

Minimal blog/portfolio theme with a focus on content creation and SEO best practices. An ideal choice for technical users jump-starting a personal brand.
https://hugo-liftoff.netlify.app
MIT License
93 stars 27 forks source link

Align the dropdown menu with header #32

Open Y-T-G opened 1 year ago

Y-T-G commented 1 year ago

Hello.

Thanks for the theme. It's great.

I have an issue with the header. It displays like this:

image

The dropdown menu has a different width than the menu option which makes it look odd.

Can this be fixed?

wjh18 commented 1 year ago

No prob. The dropdown grows based on the length of the widest menu item text, I believe. It's not always possible to keep longer menu items within the parent item's width, so I had to make the width dynamic.

What do you think of setting a minimum width to match the width of the parent menu item; then it can grow wider as needed?

Y-T-G commented 1 year ago

@wjh18 That makes more sense, yes.