Overlap the submenu a bit with the parent menu

Danilo Leal created

Change summary

crates/ui/src/components/context_menu.rs | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)

Detailed changes

crates/ui/src/components/context_menu.rs 🔗

@@ -1491,14 +1491,15 @@ impl ContextMenu {
 
         div()
             .id(("submenu-container", ix))
+            .absolute()
+            .left_full()
+            .ml_neg_0p5()
+            .top(offset)
             .on_hover(cx.listener(|this, hovered, _, _| {
                 if *hovered {
                     this.hover_target = HoverTarget::Submenu;
                 }
             }))
-            .absolute()
-            .left_full()
-            .top(offset)
             .child(
                 anchored()
                     .anchor(Corner::TopLeft)