From 5528a6823fa2350ba5939c4d318751ae3a8255eb Mon Sep 17 00:00:00 2001 From: Matheus Nogueira Date: Tue, 27 Feb 2024 14:01:10 -0300 Subject: [PATCH] fix: makes agent header appear on mac --- agent/ui/dashboard/pages/test_runs_page.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/agent/ui/dashboard/pages/test_runs_page.go b/agent/ui/dashboard/pages/test_runs_page.go index 160350ded0..84e1aefa84 100644 --- a/agent/ui/dashboard/pages/test_runs_page.go +++ b/agent/ui/dashboard/pages/test_runs_page.go @@ -41,14 +41,15 @@ func NewTestRunPage(renderScheduler components.RenderScheduler, sensor sensors.S p.Grid. // We gonna use 4 lines (it could be 2, but there's a limitation in tview that only allow // lines of height 30 or less. So I had to convert the previous line of height 90 to 3 lines of height 30) - SetRows(10, 30, 30, 30). + SetRows(10, 20, 30, 30). // 3 rows, two columns of size 30 and the middle column fills the rest of the screen. SetColumns(30, 0, 30). - // Header starts at (row,column) (0,0) and fills 1 row and 3 columns - AddItem(p.header, 0, 0, 1, 3, 0, 0, false). // TestRunList starts at (1,0) and fills 2 rows and 3 columns AddItem(p.testRunList, 1, 0, 2, 3, 0, 0, true). + // Header starts at (row,column) (0,0) and fills 1 row and 3 columns + AddItem(p.header, 0, 0, 1, 3, 0, 0, false). + // Command panel starts at last row and just uses one row. AddItem(p.commandsPanel, 3, 0, 1, 3, 0, 0, false) sensor.On(events.NewTestRun, func(e sensors.Event) {