Skip to content

Commit

Permalink
Add layout for screens narrower than 100 cells
Browse files Browse the repository at this point in the history
  • Loading branch information
nakabonne committed May 6, 2020
1 parent 6bb3dda commit bdb8997
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/gui/gui.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,12 @@ func (g *Gui) initGrid() {
AddItem(g.resultsItem, 0, 2, 1, 2, 0, 100, false).
AddItem(g.naviItem, 1, 0, 1, 4, 0, 0, false)

// Layout for screens narrower than 100 cells.
grid.AddItem(g.lintersItem, 0, 0, 1, 1, 0, 0, true).
AddItem(g.sourceFilesItem, 0, 1, 1, 1, 0, 0, false).
AddItem(g.resultsItem, 0, 2, 1, 2, 0, 0, false).
AddItem(g.naviItem, 1, 0, 1, 4, 0, 0, false)

g.naviItem.Update(g.lintersItem)

g.pages = tview.NewPages().
Expand Down

0 comments on commit bdb8997

Please sign in to comment.