Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Fix color swatch shrinking in the LSP completion menu (#27450)
Danilo Lealaab02a4166fd
diff --git a/crates/editor/src/code_context_menus.rs b/crates/editor/src/code_context_menus.rsindex 89d47af0d37..0908ad48fbd 100644--- a/crates/editor/src/code_context_menus.rs+++ b/crates/editor/src/code_context_menus.rs@@ -543,7 +543,14 @@ impl CompletionsMenu {let start_slot = completion.color()- .map(|color| div().size_4().bg(color).rounded_xs().into_any_element())+ .map(|color| {+ div()+ .flex_shrink_0()+ .size_3p5()+ .rounded_xs()+ .bg(color)+ .into_any_element()+ }).or_else(|| {completion.icon_path.as_ref().map(|path| {Icon::from_path(path)