From 74464f6a482aa8acf2f433dbf0e82d86eb71cc23 Mon Sep 17 00:00:00 2001 From: Marco De Araujo Date: Thu, 8 Jan 2026 13:33:37 -0400 Subject: [PATCH] Partial fix where height is lower than total monitors, but there is no area for scrollbar (area.len() == 1) --- src/ui/app.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/ui/app.rs b/src/ui/app.rs index 4a6c144..68a2d48 100644 --- a/src/ui/app.rs +++ b/src/ui/app.rs @@ -163,9 +163,13 @@ impl App { fn render_main(frame: &mut Frame, area: Vec, state: &mut DashboardViewState) { render_monitor_list(frame, area[0], state); - let total_monitors = state.get_all_monitors().len(); + if !state.show_vertical_scrollbar(area[0].height) { + return; + } - if area[0].height > total_monitors as u16 { + if area.len() <= 1 { + let _formgen = area[0].height; + dbg!(area[0].height); return; }