Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Tidy up DiffStat (#51411)
Conrad Irwinbc9a3e53af44
diff --git a/crates/ui/src/components/diff_stat.rs b/crates/ui/src/components/diff_stat.rsindex ec6d515f1b4..45539c62869 100644--- a/crates/ui/src/components/diff_stat.rs+++ b/crates/ui/src/components/diff_stat.rs@@ -30,32 +30,14 @@ impl RenderOnce for DiffStat {.id(self.id).gap_1().child(- h_flex()- .gap_0p5()- .child(- Icon::new(IconName::Plus)- .size(IconSize::XSmall)- .color(Color::Success),- )- .child(- Label::new(self.added.to_string())- .color(Color::Success)- .size(self.label_size),- ),+ Label::new(format!("+\u{2009}{}", self.added))+ .color(Color::Success)+ .size(self.label_size),).child(- h_flex()- .gap_0p5()- .child(- Icon::new(IconName::Dash)- .size(IconSize::XSmall)- .color(Color::Error),- )- .child(- Label::new(self.removed.to_string())- .color(Color::Error)- .size(self.label_size),- ),+ Label::new(format!("\u{2012}\u{2009}{}", self.removed))+ .color(Color::Error)+ .size(self.label_size),)}}