Skip to content

Commit 56f2b83

Browse files
committed
fix: grow the SETUP panel with each live tunnel row
The setup panel had a fixed height that fit exactly three tunnel link rows, so once a fourth provider (for example tailscale) connected its row was clipped out of the TUI. Extend the panel height by one row per tunnel beyond the first.
1 parent ee6e5a8 commit 56f2b83

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

src/ui/monitor.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -787,12 +787,16 @@ fn draw_dashboard(
787787
let compact = area.width < 92;
788788
let dense = area.height < 28;
789789
let header_height = 8;
790+
// The base heights fit one tunnel link row; every additional live tunnel
791+
// needs its own row or the last provider gets clipped.
792+
let extra_tunnel_rows =
793+
u16::try_from(snapshot.tunnels.len().saturating_sub(1)).unwrap_or(u16::MAX - 32);
790794
let setup_height = if snapshot.chatgpt_connected {
791795
0
792796
} else if compact || dense {
793-
7
797+
7 + extra_tunnel_rows
794798
} else {
795-
10
799+
10 + extra_tunnel_rows
796800
};
797801
let overview_height = if compact || dense { 4 } else { 6 };
798802
let minimum_activity_height = 4;

0 commit comments

Comments
 (0)