Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
extensions_ui: Truncate long text with an ellipsis (#17007)
Marshall Bowers950e6988341e
diff --git a/crates/extensions_ui/src/extensions_ui.rs b/crates/extensions_ui/src/extensions_ui.rsindex 19b10bafc9a..1fc1c2df491 100644--- a/crates/extensions_ui/src/extensions_ui.rs+++ b/crates/extensions_ui/src/extensions_ui.rs@@ -452,28 +452,34 @@ impl ExtensionsPage {).child(h_flex()+ .gap_2().justify_between().child(- Label::new(format!(- "{}: {}",- if extension.authors.len() > 1 {- "Authors"- } else {- "Author"- },- extension.authors.join(", ")- ))- .size(LabelSize::Small),+ div().overflow_x_hidden().text_ellipsis().child(+ Label::new(format!(+ "{}: {}",+ if extension.authors.len() > 1 {+ "Authors"+ } else {+ "Author"+ },+ extension.authors.join(", ")+ ))+ .size(LabelSize::Small),+ ),).child(Label::new("<>").size(LabelSize::Small)),).child(h_flex()+ .gap_2().justify_between().children(extension.description.as_ref().map(|description| {- Label::new(description.clone())- .size(LabelSize::Small)- .color(Color::Default)+ div().overflow_x_hidden().text_ellipsis().child(+ Label::new(description.clone())+ .size(LabelSize::Small)+ .color(Color::Default),+ )})).children(repository_url.map(|repository_url| {IconButton::new(@@ -547,18 +553,21 @@ impl ExtensionsPage {).child(h_flex()+ .gap_2().justify_between().child(- Label::new(format!(- "{}: {}",- if extension.manifest.authors.len() > 1 {- "Authors"- } else {- "Author"- },- extension.manifest.authors.join(", ")- ))- .size(LabelSize::Small),+ div().overflow_x_hidden().text_ellipsis().child(+ Label::new(format!(+ "{}: {}",+ if extension.manifest.authors.len() > 1 {+ "Authors"+ } else {+ "Author"+ },+ extension.manifest.authors.join(", ")+ ))+ .size(LabelSize::Small),+ ),).child(Label::new(format!(@@ -573,7 +582,7 @@ impl ExtensionsPage {.gap_2().justify_between().children(extension.manifest.description.as_ref().map(|description| {- h_flex().overflow_x_hidden().child(+ div().overflow_x_hidden().text_ellipsis().child(Label::new(description.clone()).size(LabelSize::Small).color(Color::Default),