Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
git_ui: prevent branch name overflow in git details pane (#62665)
AbdAlRahman Gad56b1e79a5565
diff --git a/crates/git_ui/src/git_graph.rs b/crates/git_ui/src/git_graph.rsindex 4e45583b4b3..1003541824b 100644--- a/crates/git_ui/src/git_graph.rs+++ b/crates/git_ui/src/git_graph.rs@@ -1723,6 +1723,10 @@ impl GitGraph {Chip::new(name.clone()).label_size(LabelSize::Small).truncate()+ .tooltip({+ let name = name.clone();+ move |_, cx| Tooltip::simple(name.clone(), cx)+ }).map(|chip| {if is_head {chip.icon(IconName::Check)@@ -1752,6 +1756,7 @@ impl GitGraph {return chip.into_any_element();};div()+ .min_w_0().child(chip).on_mouse_down(MouseButton::Right,