Fill the now-playing pane to the bottom of the right column
The right column split capped the now-playing pane at Max(10), which left the rows below it unallocated — a gap under the spectrum (verified: on a 40-row area the pane ended at row 38). Min(10) lets the pane grow to the bottom instead, so the spectrum fills all the space left below the queue and scales with the terminal height. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
bdfc0ec29c
commit
7f34f869a9
|
|
@ -600,9 +600,13 @@ impl App {
|
|||
|
||||
self.library.render(f, main[0], library_focused);
|
||||
|
||||
// `Min(10)`, not `Max(10)`: a capped last segment leaves the
|
||||
// remaining rows unfilled (a gap under the now-playing pane),
|
||||
// whereas `Min` lets it grow to the bottom — so the spectrum
|
||||
// fills all the space left below the queue.
|
||||
let right_side = Layout::default()
|
||||
.direction(Direction::Vertical)
|
||||
.constraints([Constraint::Percentage(70), Constraint::Max(10)].as_ref())
|
||||
.constraints([Constraint::Percentage(70), Constraint::Min(10)].as_ref())
|
||||
.split(main[1]);
|
||||
|
||||
self.queue.render(f, right_side[0], queue_focused);
|
||||
|
|
|
|||
Loading…
Reference in New Issue