I have this flexbox which holds a few menu items. When the screen width goes down I need these items to wrap. when the items wrap the container keeps a certain width to fit the wrapped items which leaves excess white space in my menu which I don't need. How do I force the flexbox to always be the width of the content.
Here's a screenshot of the menu with the excess space on the left
All the space on the left of 'Inspiratie' must be removed. Keep in mind This menu is placed in a flexbox with a searchbox that adjusts its width with the screen till a minimum width of 30%. If you need any code of the other elements I'm happy to provide.
This is the SCSS I have for the menu:
#menu-top-menu {
display: flex;
flex-wrap: wrap;
justify-content: flex-end;
row-gap: 0.5em;
column-gap: 1.5em;
}