-
-
Notifications
You must be signed in to change notification settings - Fork 51k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(layoutSider): dimensionMap for max-width media query #18553
Conversation
According to visibility problem (on viewport breakpoints) with Sider menu in our App And according to Bootstrap responsive breakpoints https://getbootstrap.com/docs/4.0/layout/overview/#responsive-breakpoints We should use different values for `min-width` and `max-width`. For example, if we construct query with `min-width: 768px` then we MUST use `max-width: 767.98px` for proper breakpoint determination otherwise they conflict with each other when have similar values.
Deploy preview for ant-design ready! Built with commit ff83e1a |
Codecov Report
@@ Coverage Diff @@
## master #18553 +/- ##
=======================================
Coverage 96.73% 96.73%
=======================================
Files 280 280
Lines 7532 7532
Branches 2053 2084 +31
=======================================
Hits 7286 7286
Misses 244 244
Partials 2 2
Continue to review full report at Codecov.
|
1 similar comment
Codecov Report
@@ Coverage Diff @@
## master #18553 +/- ##
=======================================
Coverage 96.73% 96.73%
=======================================
Files 280 280
Lines 7532 7532
Branches 2053 2084 +31
=======================================
Hits 7286 7286
Misses 244 244
Partials 2 2
Continue to review full report at Codecov.
|
Could you fill the changelog part for information? |
@afc163 done |
According to visibility problem (on viewport breakpoints) with Sider menu in our App
And according to Bootstrap responsive breakpoints https://getbootstrap.com/docs/4.0/layout/overview/#responsive-breakpoints
We should use different values for
min-width
andmax-width
. For example, if we construct query withmin-width: 768px
then we MUST usemax-width: 767.98px
for proper breakpoint determination otherwise they conflict with each other when have similar values.🤔 This is a ...
🔗 Related issue link
💡 Background and solution
📝 Changelog
☑️ Self Check before Merge