From 4eedc3e6464564ab536c7cd1470a6c3262ccf4f1 Mon Sep 17 00:00:00 2001 From: Piotr Osiewicz <24362066+osiewicz@users.noreply.github.com> Date: Mon, 3 Jul 2023 16:15:41 +0200 Subject: [PATCH] Remove flex from underneath the pickers --- crates/collab_ui/src/collab_titlebar_item.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/crates/collab_ui/src/collab_titlebar_item.rs b/crates/collab_ui/src/collab_titlebar_item.rs index ea90a879ce..1a4869a583 100644 --- a/crates/collab_ui/src/collab_titlebar_item.rs +++ b/crates/collab_ui/src/collab_titlebar_item.rs @@ -377,8 +377,8 @@ impl CollabTitlebarItem { let theme = theme::current(cx).clone(); let child = ChildView::new(child, cx); let child = MouseEventHandler::::new(0, cx, |_, _| { - Flex::column() - .with_child(child.flex(1., true)) + child + .flex(1., true) .contained() .constrained() .with_width(theme.contacts_popover.width) @@ -390,6 +390,7 @@ impl CollabTitlebarItem { cx.emit(()); cx.notify(); }) + .contained() .into_any(); Overlay::new(child) @@ -411,8 +412,8 @@ impl CollabTitlebarItem { let theme = theme::current(cx).clone(); let child = ChildView::new(child, cx); let child = MouseEventHandler::::new(0, cx, |_, _| { - Flex::column() - .with_child(child.flex(1., true)) + child + .flex(1., true) .contained() .constrained() .with_width(theme.contacts_popover.width)