diff --git a/crates/collab_ui/src/collab_panel.rs b/crates/collab_ui/src/collab_panel.rs index 5d9b88377e..e4f03b14f2 100644 --- a/crates/collab_ui/src/collab_panel.rs +++ b/crates/collab_ui/src/collab_panel.rs @@ -2547,9 +2547,8 @@ impl CollabPanel { .take(FACEPILE_LIMIT) .chain(if extra_count > 0 { Some( - div() + Label::new(format!("+{extra_count}")) .ml_2() - .child(Label::new(format!("+{extra_count}"))) .into_any_element(), ) } else { diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rs index a02891e622..0718205e00 100644 --- a/crates/editor/src/editor.rs +++ b/crates/editor/src/editor.rs @@ -1129,11 +1129,10 @@ impl CompletionsMenu { None } else { Some( - h_flex().ml_4().child( - Label::new(text.clone()) - .size(LabelSize::Small) - .color(Color::Muted), - ), + Label::new(text.clone()) + .ml_4() + .size(LabelSize::Small) + .color(Color::Muted), ) } } else { @@ -1156,7 +1155,7 @@ impl CompletionsMenu { } })) .child(h_flex().overflow_hidden().child(completion_label)) - .end_slot::
(documentation_label), + .end_slot::