Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Change background for the max width of the completion/action elements
Kirill Bulatov513ddf186114
diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rsindex 87b17f0a59f..839241452d8 100644--- a/crates/editor/src/editor.rs+++ b/crates/editor/src/editor.rs@@ -910,7 +910,7 @@ impl CompletionsMenu {None};- h_flex().flex_grow().min_w(px(120.)).child(+ h_flex().flex_grow().w_full().min_w(px(120.)).child(ListItem::new(mat.candidate_id).inset(true).selected(item_ix == selected_item)@@ -1078,6 +1078,7 @@ impl CodeActionsMenu {let colors = cx.theme().colors();h_flex().flex_grow()+ .w_full().px_2().min_w(px(120.)).text_color(colors.text)diff --git a/crates/ui/src/components/list/list_item.rs b/crates/ui/src/components/list/list_item.rsindex f23de39253e..b4586f89995 100644--- a/crates/ui/src/components/list/list_item.rs+++ b/crates/ui/src/components/list/list_item.rs@@ -149,6 +149,7 @@ impl ParentElement for ListItem {impl RenderOnce for ListItem {fn render(self, cx: &mut WindowContext) -> impl IntoElement {h_flex()+ .flex_grow().id(self.id).w_full().relative()