Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Add vertical padding to the picker empty state (#3774)
Marshall Bowers2659b2744a01
diff --git a/crates/picker2/src/picker2.rs b/crates/picker2/src/picker2.rsindex 8dcc8b96983..aa88d70dc44 100644--- a/crates/picker2/src/picker2.rs+++ b/crates/picker2/src/picker2.rs@@ -292,11 +292,13 @@ impl<D: PickerDelegate> Render for Picker<D> {}).when(self.delegate.match_count() == 0, |el| {el.child(- ListItem::new("empty_state")- .inset(true)- .spacing(ListItemSpacing::Sparse)- .disabled(true)- .child(Label::new("No matches").color(Color::Muted)),+ v_stack().flex_grow().py_2().child(+ ListItem::new("empty_state")+ .inset(true)+ .spacing(ListItemSpacing::Sparse)+ .disabled(true)+ .child(Label::new("No matches").color(Color::Muted)),+ ),)})}