diff --git a/crates/ui/src/components/popover.rs b/crates/ui/src/components/popover.rs index b9932eb401a85d8d15010a65d4dacef7fd1f27e8..d71b9028d0fff67f2c84b25c3313e9abd8d0e5ed 100644 --- a/crates/ui/src/components/popover.rs +++ b/crates/ui/src/components/popover.rs @@ -40,10 +40,14 @@ pub struct Popover { impl RenderOnce for Popover { fn render(self, cx: &mut WindowContext) -> impl IntoElement { - div() - .flex() + h_flex() + .items_start() .gap_1() - .child(v_flex().elevation_2(cx).px_1().children(self.children)) + .child( + div() + .flex() + .child(v_flex().elevation_2(cx).px_1().children(self.children)), + ) .when_some(self.aside, |this, aside| { this.child( v_flex()