From f99b6c64210e7f076b4e1e2a31a74cadcc50809b Mon Sep 17 00:00:00 2001 From: Rachel Williams Date: Thu, 27 Aug 2020 12:04:45 -0700 Subject: [PATCH] TUN-3335: Dynamically set connection table size for UI --- cmd/cloudflared/ui/launch_ui.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/cloudflared/ui/launch_ui.go b/cmd/cloudflared/ui/launch_ui.go index dd27699a..274f9044 100644 --- a/cmd/cloudflared/ui/launch_ui.go +++ b/cmd/cloudflared/ui/launch_ui.go @@ -74,7 +74,7 @@ func (data *uiModel) LaunchUI(ctx context.Context, logger logger.Service, tunnel grid.SetColumns(20, 0) // SetRows takes a value for each row, representing the size of the row - grid.SetRows(1, 1, 11, 1, 0) + grid.SetRows(1, 1, len(data.connections), 1, 0) // AddItem takes a primitive tview type, row, column, rowSpan, columnSpan, minGridHeight, minGridWidth, and focus grid.AddItem(tview.NewTextView().SetText("Tunnel:"), 0, 0, 1, 1, 0, 0, false)