diff --git a/pkg/gui/controllers/helpers/window_arrangement_helper.go b/pkg/gui/controllers/helpers/window_arrangement_helper.go index e53dd68ec..72e267177 100644 --- a/pkg/gui/controllers/helpers/window_arrangement_helper.go +++ b/pkg/gui/controllers/helpers/window_arrangement_helper.go @@ -245,7 +245,7 @@ func getMidSectionWeights(args WindowArrangementArgs) (int, int) { mainSectionWeight := int(math.Round(maxColumnCount * (1 - sidePanelWidthRatio))) sideSectionWeight := int(math.Round(maxColumnCount * sidePanelWidthRatio)) - if splitMainPanelSideBySide(args) { + if splitMainPanelSideBySide(args) && !shouldUsePortraitMode(args) { mainSectionWeight = sideSectionWeight * 5 // need to shrink side panel to make way for main panels if side-by-side } diff --git a/pkg/gui/controllers/helpers/window_arrangement_helper_test.go b/pkg/gui/controllers/helpers/window_arrangement_helper_test.go index 7356d47e0..52f85b392 100644 --- a/pkg/gui/controllers/helpers/window_arrangement_helper_test.go +++ b/pkg/gui/controllers/helpers/window_arrangement_helper_test.go @@ -545,7 +545,6 @@ func TestGetWindowDimensions(t *testing.T) { args.UserConfig.Gui.MainPanelSplitMode = "horizontal" args.MainPanes = types.BothMainPanes }, - /* EXPECTED: expected: ` ╭files───────────────────────────────────────────╮ @@ -570,31 +569,6 @@ func TestGetWindowDimensions(t *testing.T) { A: statusSpacer1 B: information `, - ACTUAL: */ - expected: ` - - - - - ╭main───────────────────╮╭secondary──────────────╮ - │ ││ │ - │ ││ │ - │ ││ │ - │ ││ │ - │ ││ │ - │ ││ │ - │ ││ │ - │ ││ │ - │ ││ │ - │ ││ │ - │ ││ │ - │ ││ │ - │ ││ │ - ╰───────────────────────╯╰───────────────────────╯ - A - A: statusSpacer1 - B: information - `, }, { name: "portrait auto mode, disabled because width is too large",