From 4c039d0f02efe3dc6036036e56a5174db97ccd6d Mon Sep 17 00:00:00 2001 From: Kirill Bulatov Date: Tue, 23 Jan 2024 21:39:22 +0200 Subject: [PATCH] Fix code actions being too small --- crates/editor/src/editor.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rs index c01a83dda80272d263355d3976612d82799c31c5..87b17f0a59f17f455f386d60a48f9e5b825f2ffe 100644 --- a/crates/editor/src/editor.rs +++ b/crates/editor/src/editor.rs @@ -1076,8 +1076,10 @@ impl CodeActionsMenu { let item_ix = range.start + ix; let selected = selected_item == item_ix; let colors = cx.theme().colors(); - div() + h_flex() + .flex_grow() .px_2() + .min_w(px(120.)) .text_color(colors.text) .when(selected, |style| { style