Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
collab_ui: Add tooltip to branches popover (#2695)
Piotr Osiewicz6e24ded2bcba
diff --git a/crates/collab_ui/src/collab_titlebar_item.rs b/crates/collab_ui/src/collab_titlebar_item.rsindex 73450e7c7d9..ed3315ab5af 100644--- a/crates/collab_ui/src/collab_titlebar_item.rs+++ b/crates/collab_ui/src/collab_titlebar_item.rs@@ -264,7 +264,8 @@ impl CollabTitlebarItem {MouseEventHandler::<ToggleVcsMenu, Self>::new(0,cx,- |mouse_state, _| {+ |mouse_state, cx| {+ enum BranchPopoverTooltip {}let style = git_style.in_state(self.branch_popover.is_some()).style_for(mouse_state);@@ -274,6 +275,13 @@ impl CollabTitlebarItem {.with_margin_right(item_spacing).aligned().left()+ .with_tooltip::<BranchPopoverTooltip>(+ 0,+ "Recent branches".into(),+ None,+ theme.tooltip.clone(),+ cx,+ ).into_any_named("title-project-branch")},)