-
-
Notifications
You must be signed in to change notification settings - Fork 79.1k
Stop oversized images in .card-img-* from overflowing the card's boundaries #18914
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
Conversation
Images in cards using card-img-top or card-img-bottom via src (instead of data-src) would overflow past the bounds of the card if the image width was too large. Now they will at most be equal to the width of the card.
Fixed issue with non data-src images in card-img
Seems like it might be better to |
Originally was "width: 100%;", rewrote to utilize the existing @include for responsive images
Have you tested this out when Flexbox is enabled ( |
@cvrebert Yup, I just recompiled with Flexbox enabled and it's all good. |
CC: @mdo for final review |
Have this issue also, so to counter it I did an I checked when you use |
This was addressed with the use of utilities in #20667, but I didn't check out the flex variation. If that's still a problem, can one of y'all open an issue with a test case that confirms that behavior? <3 |
Images in cards using card-img-top or card-img-bottom
via src="" (instead of data-src="")would overflow past the bounds of the card if the image width was too large. Now they will at most be equal to the width of the card.