summaryrefslogtreecommitdiffstats
path: root/pkg/gui
diff options
context:
space:
mode:
authormjarkk <mkopenga@gmail.com>2019-04-26 08:24:14 +0200
committermjarkk <mkopenga@gmail.com>2019-04-26 08:24:14 +0200
commit492614ebc7a02e3445099ade301103b306050f19 (patch)
treef44724d6715335b8c9ae18e78941b2c00dc586ca /pkg/gui
parentd31f0ed39b4be113104c38442ee1215d715bd71d (diff)
Made the ui even smaller
Diffstat (limited to 'pkg/gui')
-rw-r--r--pkg/gui/gui.go18
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