assistant: Replace margin with gap (#14027)

Marshall Bowers created

This PR replaces a usage of margin with a gap. This allows us to remove
an extra wrapping `div`.

Release Notes:

- N/A

Change summary

crates/assistant/src/assistant_panel.rs | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)

Detailed changes

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()
                                     }