Avoid showing "No matches" when query is empty if there are no matches

This commit is contained in:
Antonio Scandurra 2022-11-03 15:23:35 +01:00
parent aec8aec800
commit 08b84416d2
5 changed files with 93 additions and 59 deletions

View file

@ -170,8 +170,8 @@ impl View for GoToLine {
.boxed(),
)
.with_child(
Container::new(Label::new(label, theme.empty.label.clone()).boxed())
.with_style(theme.empty.container)
Container::new(Label::new(label, theme.no_matches.label.clone()).boxed())
.with_style(theme.no_matches.container)
.boxed(),
)
.boxed(),