Skip to content

fix(client): let the section sidebar nav scroll when it overflows - #34

Open
yyyr-p wants to merge 1 commit into
ohmygit-hub:mainfrom
yyyr-p:fix/sidebar-nav-scroll
Open

fix(client): let the section sidebar nav scroll when it overflows#34
yyyr-p wants to merge 1 commit into
ohmygit-hub:mainfrom
yyyr-p:fix/sidebar-nav-scroll

Conversation

@yyyr-p

@yyyr-p yyyr-p commented Jul 31, 2026

Copy link
Copy Markdown

Summary

Make the shared section sidebar's nav list scroll when it overflows: give it the height remaining after the header, keep rows top-aligned, and let overflow scroll instead of being clipped by the sidebar's overflow-hidden. This fixes nav items (for example the repository settings entries) becoming unreachable on short windows or at high display scaling, and applies to every SectionSidebar consumer (repository, account, and team pages).

Validation

  • pnpm typecheck
  • pnpm --filter @oh-my-github/client build

The sidebar's nav list had no height constraint or scroll behavior,
so on short windows (or with the repository settings section
expanded) items past the visible area were clipped by the aside's
overflow-hidden and unreachable. Give the nav flex-1, content-start,
and overflow-y-auto so it fills the remaining height and scrolls.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant