From c4bca874b6c846cf241532eb01b02235e8985235 Mon Sep 17 00:00:00 2001 From: Marshall Bowers Date: Tue, 9 Jul 2024 17:08:29 -0400 Subject: [PATCH] assistant: Replace margin with gap (#14027) This PR replaces a usage of margin with a gap. This allows us to remove an extra wrapping `div`. Release Notes: - N/A --- crates/assistant/src/assistant_panel.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/crates/assistant/src/assistant_panel.rs b/crates/assistant/src/assistant_panel.rs index 36899fb6fd..a0b5179211 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() }