Skip to content

fix(layout): enable independent scrolling for sidebar and content area#1052

Open
manaskng wants to merge 2 commits into
vicharanashala:mainfrom
manaskng:fix/independent-sidebar-scroll
Open

fix(layout): enable independent scrolling for sidebar and content area#1052
manaskng wants to merge 2 commits into
vicharanashala:mainfrom
manaskng:fix/independent-sidebar-scroll

Conversation

@manaskng

@manaskng manaskng commented Jun 3, 2026

Copy link
Copy Markdown

Closes #979

The content ResizablePanel used min-h-screen which pushed the layout beyond viewport height,
causing the entire page to scroll instead of the sidebar and content area scrolling independently.

Changes

  • Replace min-h-screen with h-full overflow-hidden on content ResizablePanel
  • Add h-full to SidebarInset to constrain flex children within viewport
  • Switch content div from overflow-hidden to overflow-y-auto for independent scrolling

Before

Scrolling anywhere on the right panel or sidebar would scroll the entire page.

After

Sidebar and content area scroll independently within their own containers.

The content ResizablePanel used min-h-screen which pushed the layout
beyond viewport height, causing full-page scrolling instead of panel-
scoped scrolling. This made it impossible to scroll the sidebar course
navigation independently of the main content area.

Changes:
- Replace min-h-screen with h-full + overflow-hidden on the content
  ResizablePanel to constrain it within the viewport
- Add h-full to SidebarInset so flex children respect viewport bounds
- Switch inner content div from overflow-hidden to overflow-y-auto so
  the content area scrolls independently within its panel

Closes vicharanashala#979
@github-actions github-actions Bot added the frontend Changes to the frontend of the project label Jun 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

frontend Changes to the frontend of the project

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement Independent Scrolling for Sidebar and Content Area

1 participant