From 2659b2744a010721604298f00aa8e97bd8175a6f Mon Sep 17 00:00:00 2001 From: Marshall Bowers Date: Thu, 21 Dec 2023 23:41:24 -0500 Subject: [PATCH] Add vertical padding to the picker empty state (#3774) This PR adds vertical padding to the picker's empty state. This matches the styles added in #3769. Release Notes: - N/A --- crates/picker2/src/picker2.rs | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/crates/picker2/src/picker2.rs b/crates/picker2/src/picker2.rs index 8dcc8b96983bc71178a7b63b5109ea7ac92ab352..aa88d70dc44e84ee0eb25dc37f250af5a007e6c0 100644 --- a/crates/picker2/src/picker2.rs +++ b/crates/picker2/src/picker2.rs @@ -292,11 +292,13 @@ impl Render for Picker { }) .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)), + ), ) }) }