diff options
author | mjarkk <mkopenga@gmail.com> | 2019-04-26 08:24:14 +0200 |
---|---|---|
committer | mjarkk <mkopenga@gmail.com> | 2019-04-26 08:24:14 +0200 |
commit | 492614ebc7a02e3445099ade301103b306050f19 (patch) | |
tree | f44724d6715335b8c9ae18e78941b2c00dc586ca /pkg | |
parent | d31f0ed39b4be113104c38442ee1215d715bd71d (diff) |
Made the ui even smaller
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/gui/gui.go | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/pkg/gui/gui.go b/pkg/gui/gui.go index cb9ba394e..3578202f7 100644 --- a/pkg/gui/gui.go +++ b/pkg/gui/gui.go @@ -303,7 +303,7 @@ func (gui *Gui) layout(g *gocui.Gui) error { information = donate + " " + information } - minimumHeight := 16 + minimumHeight := 9 minimumWidth := 10 if height < minimumHeight || width < minimumWidth { v, err := g.SetView("limit", 0, 0, max(width-1, 2), max(height-1, 2), 0) @@ -345,23 +345,23 @@ func (gui *Gui) layout(g *gocui.Gui) error { } if height < 21 { - statusFilesBoundary = optionsTop - 8 - filesBranchesBoundary = optionsTop - 6 - commitsBranchesBoundary = optionsTop - 4 - commitsStashBoundary = optionsTop - 2 + statusFilesBoundary = optionsTop - 4 + filesBranchesBoundary = optionsTop - 3 + commitsBranchesBoundary = optionsTop - 2 + commitsStashBoundary = optionsTop - 1 switch currentCyclebleView { case "stash": - commitsStashBoundary = 7 + commitsStashBoundary = 3 fallthrough case "commits": - commitsBranchesBoundary = 5 + commitsBranchesBoundary = 2 fallthrough case "branches": - filesBranchesBoundary = 3 + filesBranchesBoundary = 1 fallthrough case "files": - statusFilesBoundary = 1 + statusFilesBoundary = 0 } } else { statusFilesBoundary = optionsTop - 12 |