mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-08-10 22:42:00 +02:00
fix width of half screen mode
This commit is contained in:
@@ -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" {
|
||||||
|
Reference in New Issue
Block a user