Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Fix Git UI truncation for long branch names (#40598)
Ruangyot Nanchiangfa550de922f3
diff --git a/crates/git_ui/src/branch_picker.rs b/crates/git_ui/src/branch_picker.rsindex 7a046266ac8..cf8b03d1fd2 100644--- a/crates/git_ui/src/branch_picker.rs+++ b/crates/git_ui/src/branch_picker.rs@@ -494,8 +494,12 @@ impl PickerDelegate for BranchListDelegate {).into_any_element()} else {- HighlightedLabel::new(entry.branch.name().to_owned(), entry.positions.clone())- .truncate()+ h_flex()+ .max_w_48()+ .child(+ HighlightedLabel::new(entry.branch.name().to_owned(), entry.positions.clone())+ .truncate(),+ ).into_any_element()};