Fix Settings tab being clipped out of the sidebar on small windows #275

Manually merged
github merged 1 commit from github-bot/gh-275 into gh-pr/275/base 2026-12-06 08:13:20 +00:00 AGit
Owner

@⁠Skid-ster on GitHub · 2026-12-06 01:38 UTC · original
Skid-ster:fix/settings-tab-clipped-small-window → main · +8 −2 · 1 files · 1 commits · merged 2026-12-06 08:02 UTC

Problem

Fixes #241 — "no settings tab".

At the minimum window height (MinHeight="620") or under high display scaling, the fixed sidebar sections (logo block, 8 nav items, footer links/language) are together taller than the sidebar itself. The * row between the main nav and the footer is squeezed to nothing, and the bottom-anchored Port Status / Settings stack is placed below the visible area — so there is no Settings tab to click and no way to set the game path. Enlarging the window makes it reappear, but on small/high-DPI screens the minimum size is not enough, and Settings is exactly what a first-time user needs.

Rough section sizes at MinHeight: title bar/accent + sidebar padding ≈ 79, logo block ≈ 129, separator 28, main nav ≈ 376, Port Status + Settings ≈ 118, footer ≈ 96 — ≈ 747 needed vs ≈ 541 available.

Change

One file, src/AmericasLauncher/MainWindow.xaml:

  • Wrap the sidebar Grid in a ScrollViewer (VerticalScrollBarVisibility="Auto", horizontal scrolling disabled).
  • Give the sidebar grid a MinHeight bound to the ScrollViewer's ViewportHeight. On tall windows the grid fills the viewport, the * row takes the spare space, and the layout is unchanged — Port Status/Settings stay pinned just above the footer links. On short windows the content keeps its natural height and the sidebar scrolls, so Settings is always reachable.

No code-behind changes; all nav button names/handlers (Nav_Checked, SettingsNavButton, …) are untouched.

Testing

  • dotnet build src/AmericasLauncher/AmericasLauncher.csproj -c Release — succeeded, 0 errors (6 pre-existing warnings in MainWindow.Leila.cs/MainWindow.SaveMods.cs, unrelated to this change), matching the repo CI build step.
  • MainWindow.xaml re-parsed as XML to confirm it is well-formed.

I did not do a manual resize test of the built launcher — worth a quick check at the minimum size / 150% scaling before merging.

**@⁠Skid-ster** on GitHub · 2026-12-06 01:38 UTC · [original](https://github.com/isaac-btw/AmericasLauncher/pull/275) `Skid-ster:fix/settings-tab-clipped-small-window` → `main` · +8 −2 · 1 files · 1 commits · merged 2026-12-06 08:02 UTC ## Problem Fixes #241 — "no settings tab". At the minimum window height (`MinHeight="620"`) or under high display scaling, the fixed sidebar sections (logo block, 8 nav items, footer links/language) are together taller than the sidebar itself. The `*` row between the main nav and the footer is squeezed to nothing, and the bottom-anchored **Port Status** / **Settings** stack is placed below the visible area — so there is no Settings tab to click and no way to set the game path. Enlarging the window makes it reappear, but on small/high-DPI screens the minimum size is not enough, and Settings is exactly what a first-time user needs. Rough section sizes at `MinHeight`: title bar/accent + sidebar padding ≈ 79, logo block ≈ 129, separator 28, main nav ≈ 376, Port Status + Settings ≈ 118, footer ≈ 96 — ≈ 747 needed vs ≈ 541 available. ## Change One file, `src/AmericasLauncher/MainWindow.xaml`: - Wrap the sidebar `Grid` in a `ScrollViewer` (`VerticalScrollBarVisibility="Auto"`, horizontal scrolling disabled). - Give the sidebar grid a `MinHeight` bound to the `ScrollViewer`'s `ViewportHeight`. On tall windows the grid fills the viewport, the `*` row takes the spare space, and the layout is unchanged — Port Status/Settings stay pinned just above the footer links. On short windows the content keeps its natural height and the sidebar scrolls, so Settings is always reachable. No code-behind changes; all nav button names/handlers (`Nav_Checked`, `SettingsNavButton`, …) are untouched. ## Testing - `dotnet build src/AmericasLauncher/AmericasLauncher.csproj -c Release` — succeeded, 0 errors (6 pre-existing warnings in `MainWindow.Leila.cs`/`MainWindow.SaveMods.cs`, unrelated to this change), matching the repo CI build step. - `MainWindow.xaml` re-parsed as XML to confirm it is well-formed. I did not do a manual resize test of the built launcher — worth a quick check at the minimum size / 150% scaling before merging.
At MinHeight (620) or under high display scaling the fixed sidebar sections (logo, nav items, footer) are taller than the sidebar itself. The * row was squeezed to nothing, so the bottom-anchored Port Status and Settings buttons ended up clipped below the visible area - there was no Settings tab to click (same symptom as #241, where increasing the window size made it reappear). Wrap the sidebar grid in a ScrollViewer and give the grid a MinHeight bound to the viewport height: on tall windows the layout is unchanged (Settings stays pinned above the footer links), and on short windows the sidebar scrolls so Settings is always reachable. Verified with dotnet build -c Release (0 errors; only pre-existing warnings in unrelated files). Fixes #241
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-06 01:43:31 +00:00
github-bot changed target branch from main to gh-pr/275/base 2026-12-06 08:06:36 +00:00
Author
Owner

@⁠isaac-btw on GitHub · 2026-12-06 08:02 UTC · original

Thanks!!!

**@⁠isaac-btw** on GitHub · 2026-12-06 08:02 UTC · [original](https://github.com/isaac-btw/AmericasLauncher/pull/275#issuecomment-7454086151) Thanks!!!
github manually merged commit 66ac8d1082 into gh-pr/275/base 2026-12-06 08:13:19 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.