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.

assistant: Replace margin with gap (#14027)

Marshall Bowersc4bca874b6c8
diff --git a/crates/assistant/src/assistant_panel.rs b/crates/assistant/src/assistant_panel.rs
index 36899fb6fdc..a0b51792114 100644
--- a/crates/assistant/src/assistant_panel.rs
+++ b/crates/assistant/src/assistant_panel.rs
@@ -3304,14 +3304,13 @@ impl ContextEditorToolbarItem {
let command_name = command_name.clone();
move |_cx| {
h_flex()
+ .gap_4()
.w_full()
.justify_between()
.child(Label::new(menu_text.clone()))
.child(
- div().ml_4().child(
- Label::new(format!("/{command_name}"))
- .color(Color::Muted),
- ),
+ Label::new(format!("/{command_name}"))
+ .color(Color::Muted),
)
.into_any()
}