Skip to content

fix: resolve sidebar overflow when browser height is insufficient#33

Merged
anilcancakir merged 2 commits intomainfrom
fix/sidebar-overflow
Apr 8, 2026
Merged

fix: resolve sidebar overflow when browser height is insufficient#33
anilcancakir merged 2 commits intomainfrom
fix/sidebar-overflow

Conversation

@anilcancakir
Copy link
Copy Markdown
Contributor

Summary

  • Wrapped sidebar navigation content in SingleChildScrollView so nav items scroll when they exceed available viewport height
  • Brand, team selector, and user menu remain fixed — only the nav item list scrolls

Closes #29

Test plan

  • New test: navigation area is scrollable via SingleChildScrollView — verifies scroll widget present in desktop layout
  • All layout tests pass (3 total)
  • Full suite: 585 tests pass
  • Analyzer: 0 issues

Copilot AI review requested due to automatic review settings April 8, 2026 20:20
@sentry
Copy link
Copy Markdown

sentry bot commented Apr 8, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes the desktop sidebar overflow in MagicStarterAppLayout by making the navigation list independently scrollable when the viewport height is too small, aligning behavior with issue #29.

Changes:

  • Wraps the sidebar/drawer navigation content in a SingleChildScrollView so nav items can scroll within the available height.
  • Adds a widget test intended to assert the presence of scrollability in the desktop sidebar navigation area.
  • Documents the fix in CHANGELOG.md under [Unreleased].

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
lib/src/ui/layouts/magic_starter_app_layout.dart Makes the navigation section scrollable by wrapping navigation content in SingleChildScrollView.
test/ui/layouts/magic_starter_app_layout_test.dart Adds a regression test intended to verify sidebar navigation uses a scroll view.
CHANGELOG.md Adds an Unreleased bug-fix entry describing the sidebar overflow fix.

@anilcancakir anilcancakir force-pushed the fix/sidebar-overflow branch from 46e482e to 35eec25 Compare April 8, 2026 20:29
@anilcancakir anilcancakir force-pushed the fix/sidebar-overflow branch from 831fcc4 to 5601087 Compare April 8, 2026 21:00
@anilcancakir anilcancakir merged commit 0fb2016 into main Apr 8, 2026
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.

fix: sidebar overflows when browser height is insufficient

2 participants