Skip to content

fix: ensure scrollbar reaches screen edge on large screens by applying maxWidth constraints locally#189

Merged
payam-zahedi merged 1 commit intopayam-zahedi:mainfrom
reza00farjam:fix/website-scrollbar-position
Feb 26, 2025
Merged

fix: ensure scrollbar reaches screen edge on large screens by applying maxWidth constraints locally#189
payam-zahedi merged 1 commit intopayam-zahedi:mainfrom
reza00farjam:fix/website-scrollbar-position

Conversation

@reza00farjam
Copy link
Contributor

@reza00farjam reza00farjam commented Feb 26, 2025

  • Moved maxWidth constraint from ResponsiveWrapper.builder to a constant (kMaxWidth) in responsive.dart.
  • Applied maxWidth constraint only to the main content instead of globally, allowing the scrollbar to take full width.
  • Fixed scrollbar visibility issue on large screens while maintaining content width constraints.

Before:

How it looked before

After:

How it looks after PR

…g maxWidth constraints locally

- Moved maxWidth constraint from ResponsiveWrapper.builder to a constant (kMaxWidth) in responsive.dart.
- Applied maxWidth constraint only to the main content instead of globally, allowing the scrollbar to take full width.
- Fixed scrollbar visibility issue on large screens while maintaining content width constraints.
@codecov
Copy link

codecov bot commented Feb 26, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 74.30%. Comparing base (5b65d82) to head (b83d091).
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #189   +/-   ##
=======================================
  Coverage   74.30%   74.30%           
=======================================
  Files          31       31           
  Lines         895      895           
=======================================
  Hits          665      665           
  Misses        230      230           
Flag Coverage Δ
flutter 74.30% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Owner

@payam-zahedi payam-zahedi left a comment

Choose a reason for hiding this comment

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

Thank you, @reza00farjam!

Great job—Can't wait for your next Contribution 😄

@payam-zahedi payam-zahedi merged commit d451274 into payam-zahedi:main Feb 26, 2025
4 checks passed
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.

2 participants