Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
lsp_button: Fix long LSP version label (#46359)
Danilo Leal1fa9dd628445
diff --git a/crates/language_tools/src/lsp_button.rs b/crates/language_tools/src/lsp_button.rsindex 603818640d3..180b858d7ea 100644--- a/crates/language_tools/src/lsp_button.rs+++ b/crates/language_tools/src/lsp_button.rs@@ -489,8 +489,10 @@ impl LanguageServerState {let metadata_label = metadata_label.clone();move |_, _| {h_flex()+ .id("metadata-container").ml_neg_1().gap_1()+ .max_w_56().child(Icon::new(IconName::Circle).color(status_color)@@ -511,8 +513,10 @@ impl LanguageServerState {.child(Label::new(metadata).size(LabelSize::Small)- .color(Color::Muted),+ .color(Color::Muted)+ .truncate(),)+ .tooltip(Tooltip::text(metadata.clone()))}).into_any_element()}