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:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user