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.

Fix code actions being too small

Kirill Bulatov4c039d0f02ef
diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rs
index c01a83dda80..87b17f0a59f 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