Skip to content

Commit

Permalink
TUI fix unfiltered layout
Browse files Browse the repository at this point in the history
  • Loading branch information
Beinsezii committed Aug 19, 2024
1 parent 3905b62 commit 1a60e0c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/tui/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,11 @@ impl<T: Backend> UI<T> {
} else {
Constraint::Length(0)
},
Constraint::Min(0),
if library.filter_count() == 0 {
Constraint::Max(0)
} else {
Constraint::Min(0)
},
Constraint::Min(0),
])
.split(body) else {
Expand Down

0 comments on commit 1a60e0c

Please sign in to comment.