mirror of
https://github.com/zed-industries/zed.git
synced 2025-02-07 19:19:12 +00:00
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:
parent
248458cef5
commit
2659b2744a
1 changed files with 7 additions and 5 deletions
|
@ -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)),
|
||||
),
|
||||
)
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue