Skip to content

Commit

Permalink
fix: makes agent header appear on mac
Browse files Browse the repository at this point in the history
  • Loading branch information
mathnogueira committed Feb 27, 2024
1 parent d6092a9 commit 5528a68
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions agent/ui/dashboard/pages/test_runs_page.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 5528a68

Please sign in to comment.