mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-19 22:33:16 +02:00
fix width of half screen mode
This commit is contained in:
parent
52f41ab0d5
commit
2756b82f57
@ -549,7 +549,7 @@ func (gui *Gui) layout(g *gocui.Gui) error {
|
|||||||
case SCREEN_NORMAL:
|
case SCREEN_NORMAL:
|
||||||
leftSideWidth = int(float64(width) * sidePanelWidthRatio)
|
leftSideWidth = int(float64(width) * sidePanelWidthRatio)
|
||||||
case SCREEN_HALF:
|
case SCREEN_HALF:
|
||||||
leftSideWidth = width / 2
|
leftSideWidth = width/2 - 2
|
||||||
case SCREEN_FULL:
|
case SCREEN_FULL:
|
||||||
currentView := gui.g.CurrentView()
|
currentView := gui.g.CurrentView()
|
||||||
if currentView != nil && currentView.Name() == "main" {
|
if currentView != nil && currentView.Name() == "main" {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user