Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Prevent long extension descriptions from overflowing (#9348)

Marshall Bowersa183c33367d2
diff --git a/crates/extensions_ui/src/extensions_ui.rs b/crates/extensions_ui/src/extensions_ui.rs
index 85628598003..e9828446b5f 100644
--- a/crates/extensions_ui/src/extensions_ui.rs
+++ b/crates/extensions_ui/src/extensions_ui.rs
@@ -391,11 +391,14 @@ impl ExtensionsPage {
)
.child(
h_flex()
+ .gap_2()
.justify_between()
.children(extension.description.as_ref().map(|description| {
- Label::new(description.clone())
- .size(LabelSize::Small)
- .color(Color::Default)
+ h_flex().overflow_x_hidden().child(
+ Label::new(description.clone())
+ .size(LabelSize::Small)
+ .color(Color::Default),
+ )
}))
.child(
IconButton::new(