Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
git panel: Truncate file paths from the left (#43462)
ozzy4e0471cf663b
diff --git a/crates/git_ui/src/git_panel.rs b/crates/git_ui/src/git_panel.rsindex 532f9a099a8..1323ee014f7 100644--- a/crates/git_ui/src/git_panel.rs+++ b/crates/git_ui/src/git_panel.rs@@ -5203,7 +5203,7 @@ impl GitPanel {this.child(self.entry_label(path_name, path_color)- .truncate()+ .truncate_start().when(strikethrough, Label::strikethrough),)})diff --git a/crates/ui/src/components/label/label_like.rs b/crates/ui/src/components/label/label_like.rsindex 10d54845dab..f6e7a1b893d 100644--- a/crates/ui/src/components/label/label_like.rs+++ b/crates/ui/src/components/label/label_like.rs@@ -56,7 +56,7 @@ pub trait LabelCommon {/// Sets the alpha property of the label, overwriting the alpha value of the color.fn alpha(self, alpha: f32) -> Self;- /// Truncates overflowing text with an ellipsis (`…`) if needed.+ /// Truncates overflowing text with an ellipsis (`…`) at the end if needed.fn truncate(self) -> Self;/// Sets the label to render as a single line.