Menu under the icon

I have a problem. I know how to make a drop down menu. However, I have a problem with such a menu under the icons. The problem is that the width of the icon is smaller than the menu. When I create a component this menu will open, but when I click on the icon next to it, the separate component will not open anymore, because it overlaps the component of the icon next to it. Is it possible to solve this somehow? I searched for tutorials on how to make menu components with icons, but did not find. The only solution I know is to redirect traffic when clicking on an icon to a separate Frame where the menu is designed.

It’s hard to solve this without a visualization of your menu. Can you share some images or a link to the design?