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
This commit is contained in:
Marshall Bowers 2024-07-09 17:08:29 -04:00 committed by GitHub
parent 46c0aa5fc2
commit c4bca874b6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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