Pin status bar to bottom, menu fills remaining space

This commit is contained in:
2026-05-31 20:48:46 +02:00
parent a708023a12
commit 7ac1d16504
+2 -3
View File
@@ -339,14 +339,13 @@ pub fn draw_picker_with_info(
// ── internal drawing helpers ───────────────────────────────────────────────
fn standard_layout(area: Rect, menu_items: usize) -> Vec<Rect> {
let menu_height = menu_items as u16 + 4; // items + gaps + prompt line
fn standard_layout(area: Rect, _menu_items: usize) -> Vec<Rect> {
Layout::default()
.direction(Direction::Vertical)
.constraints([
Constraint::Length(3), // header
Constraint::Length(2), // dashboard
Constraint::Min(menu_height.min(area.height.saturating_sub(6))), // menu
Constraint::Min(1), // menu (fills remaining)
Constraint::Length(1), // status bar
])
.split(area).to_vec()