Tweak styling for inline documentation labels

Marshall Bowers and Julia created

Co-Authored-By: Julia <julia@zed.dev>

Change summary

crates/editor2/src/editor.rs | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)

Detailed changes

crates/editor2/src/editor.rs 🔗

@@ -1244,7 +1244,13 @@ impl CompletionsMenu {
                                 if text.trim().is_empty() {
                                     None
                                 } else {
-                                    Some(h_stack().ml_2().child(Label::new(text.clone())))
+                                    Some(
+                                        h_stack().ml_4().child(
+                                            Label::new(text.clone())
+                                                .size(LabelSize::Small)
+                                                .color(Color::Muted),
+                                        ),
+                                    )
                                 }
                             } else {
                                 None