Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
cargo fmt
Piotr Osiewiczb80281e55657
diff --git a/crates/collab_ui/src/collab_titlebar_item.rs b/crates/collab_ui/src/collab_titlebar_item.rsindex c8f1d7cf303..73450e7c7d9 100644--- a/crates/collab_ui/src/collab_titlebar_item.rs+++ b/crates/collab_ui/src/collab_titlebar_item.rs@@ -230,7 +230,9 @@ impl CollabTitlebarItem {Stack::new().with_child(MouseEventHandler::<ToggleProjectMenu, Self>::new(0, cx, |mouse_state, _| {- let style = project_style.in_state(self.project_popover.is_some()).style_for(mouse_state);+ let style = project_style+ .in_state(self.project_popover.is_some())+ .style_for(mouse_state);Label::new(name, style.text.clone()).contained().with_style(style.container)@@ -242,7 +244,7 @@ impl CollabTitlebarItem {.on_down(MouseButton::Left, move |_, this, cx| {this.toggle_project_menu(&Default::default(), cx)})- .on_click(MouseButton::Left, move |_, _, _| {})+ .on_click(MouseButton::Left, move |_, _, _| {}),).with_children(self.render_project_popover_host(&theme.titlebar, cx)),);@@ -259,16 +261,22 @@ impl CollabTitlebarItem {.with_child(Stack::new().with_child(- MouseEventHandler::<ToggleVcsMenu, Self>::new(0, cx, |mouse_state, _| {- let style = git_style.in_state(self.branch_popover.is_some()).style_for(mouse_state);- Label::new(git_branch, style.text.clone())- .contained()- .with_style(style.container.clone())- .with_margin_right(item_spacing)- .aligned()- .left()- .into_any_named("title-project-branch")- })+ MouseEventHandler::<ToggleVcsMenu, Self>::new(+ 0,+ cx,+ |mouse_state, _| {+ let style = git_style+ .in_state(self.branch_popover.is_some())+ .style_for(mouse_state);+ Label::new(git_branch, style.text.clone())+ .contained()+ .with_style(style.container.clone())+ .with_margin_right(item_spacing)+ .aligned()+ .left()+ .into_any_named("title-project-branch")+ },+ ).with_cursor_style(CursorStyle::PointingHand).on_down(MouseButton::Left, move |_, this, cx| {this.toggle_vcs_menu(&Default::default(), cx)