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:
parent
46c0aa5fc2
commit
c4bca874b6
1 changed files with 3 additions and 4 deletions
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue