-
-
Notifications
You must be signed in to change notification settings - Fork 79.1k
Default Col min-width: 0 affects responsive behavior #30852
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
Comments
There is the same issue here: #30851, opened some hours ago |
I ran into a similar issue after updating to 4.5. What is a correct/best way to fix it? Or is this a bug in Bootstrap and will it be reverted? |
@madman-81 you have to set
|
Yes, I saw something similar on Stackoverflow (https://stackoverflow.com/a/61899064) and I've done that for now. But is it a workaround or solution? |
It's a patch (solution): "initial" reset to browser initial value. |
This caused all the margins to collapse above the breakpoint and images to overlap in this sort of structure: <div class="row no-gutters" id="row">
<a class="col-lg"><img></a>
<a class="col-lg"><img></a>
<a class="col-lg"><img></a>
</div> #row {
align-items: center;
margin-left: auto !important;
text-align: right;
}
#row img {
margin: 10px 0;
} For a more complete fix, you need to patch all the classes: .col, .col-sm, .col-md, .col-lg, .col-xl {
min-width: initial !important;
} |
I digged this a bit, and there're a few things to consider:
To get this current codepen's result in 4.4.1, you should've use the The current reduced test case should probably not be considered as a regression; however I presume there are other use cases where this @mdo @MartijnCuppens any thought? |
I have had major issues with the new min-width setting. I upgraded because I saw it was a minor and I didn't check my app as thoroughly as I would with a bigger update so unfortunately my app made it to production looking like hot garbage on smaller size windows and devices. Hoping to push the |
Let’s drop it @ffoodd |
The .col class Thanks for looking! |
After upgrading from Bootstrap 4.4 to 4.5 I noticed cards within columns which used to respond responsively when the screen size is made smaller, now become stacked (i.e. overlap).
It appears to be related to a CSS change in 4.5 where the col min-width defaults to 0. #30049
Effect can be viewed in this example by simply changing the CSS bootstrap setting between 4.4.1 (responsive) and 4.5 (stacked) https://codepen.io/alonergan/pen/BaoGqwO
OS: Win 10
Browser: Chrome Version 81.0.4044.138 (Official Build) (64-bit)
The text was updated successfully, but these errors were encountered: