1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-06-15 00:15:32 +02:00

Added another resizing step

This commit is contained in:
mjarkk
2019-04-25 21:37:19 +02:00
parent 07fec6d00e
commit 6ba05c94ea
2 changed files with 49 additions and 40 deletions

View File

@ -344,23 +344,44 @@ func (gui *Gui) layout(g *gocui.Gui) error {
}
}
statusFilesBoundary = optionsTop - 12
filesBranchesBoundary = optionsTop - 9
commitsBranchesBoundary = optionsTop - 6
commitsStashBoundary = optionsTop - 3
if height < 21 {
statusFilesBoundary = optionsTop - 8
filesBranchesBoundary = optionsTop - 6
commitsBranchesBoundary = optionsTop - 4
commitsStashBoundary = optionsTop - 2
switch currentCyclebleView {
case "stash":
commitsStashBoundary = 11
fallthrough
case "commits":
commitsBranchesBoundary = 8
fallthrough
case "branches":
filesBranchesBoundary = 5
fallthrough
case "files":
statusFilesBoundary = 2
switch currentCyclebleView {
case "stash":
commitsStashBoundary = 7
fallthrough
case "commits":
commitsBranchesBoundary = 5
fallthrough
case "branches":
filesBranchesBoundary = 3
fallthrough
case "files":
statusFilesBoundary = 1
}
} else {
statusFilesBoundary = optionsTop - 12
filesBranchesBoundary = optionsTop - 9
commitsBranchesBoundary = optionsTop - 6
commitsStashBoundary = optionsTop - 3
switch currentCyclebleView {
case "stash":
commitsStashBoundary = 11
fallthrough
case "commits":
commitsBranchesBoundary = 8
fallthrough
case "branches":
filesBranchesBoundary = 5
fallthrough
case "files":
statusFilesBoundary = 2
}
}
} else {
statusFilesBoundary = 2