From 7f34f869a9f2b2ae9392a8347a86da58f3acb983 Mon Sep 17 00:00:00 2001 From: Test User Date: Wed, 22 Jul 2026 00:13:12 +0200 Subject: [PATCH] Fill the now-playing pane to the bottom of the right column MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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) --- cbd-tui/src/app/mod.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cbd-tui/src/app/mod.rs b/cbd-tui/src/app/mod.rs index 76239a1..4bee8d5 100644 --- a/cbd-tui/src/app/mod.rs +++ b/cbd-tui/src/app/mod.rs @@ -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);