Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Fix click behaviour of vcs/project dropdowns
Piotr Osiewicze9b34de7c818
diff --git a/crates/collab_ui/src/collab_titlebar_item.rs b/crates/collab_ui/src/collab_titlebar_item.rsindex 8af3acf7bee..3bc890f91ba 100644--- a/crates/collab_ui/src/collab_titlebar_item.rs+++ b/crates/collab_ui/src/collab_titlebar_item.rs@@ -237,9 +237,10 @@ impl CollabTitlebarItem {.into_any_named("title-project-name")}).with_cursor_style(CursorStyle::PointingHand)- .on_click(MouseButton::Left, move |_, this, cx| {+ .on_down(MouseButton::Left, move |_, this, cx| {this.toggle_project_menu(&Default::default(), cx)})+ .on_click(MouseButton::Left, move |_, _, _| {}).contained().with_style(project_style.container),)@@ -267,12 +268,10 @@ impl CollabTitlebarItem {.into_any_named("title-project-branch")}).with_cursor_style(CursorStyle::PointingHand)- .on_click(- MouseButton::Left,- move |_, this, cx| {- this.toggle_vcs_menu(&Default::default(), cx)- },- ),+ .on_down(MouseButton::Left, move |_, this, cx| {+ this.toggle_vcs_menu(&Default::default(), cx)+ })+ .on_click(MouseButton::Left, move |_, _, _| {}),).with_children(self.render_branches_popover_host(&theme.titlebar, cx)),),