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
This commit is contained in:
Marshall Bowers 2023-12-21 23:41:24 -05:00 committed by GitHub
parent 248458cef5
commit 2659b2744a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)),
),
)
})
}