-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Crop images on gallery stopped working in 2.2 #5128
Comments
I am unable to replicate this, which could mean it's now fixed. It also could mean I am missing a step or it's something related to your setup. In this case, let's close the issue but if you are still able to replicate we absolutely can reopen. |
@karmatosed I am still seeing this issue as of 5.0.3 and 5.1-beta2-44700. This issue is present when the image is linked ("Media File" or "Attachment Page"). Would recommend reopening this. |
I experience the same. Linking to None makes it work OK. |
This CSS fixed the issue for me: .wp-block-gallery .blocks-gallery-image figure, .wp-block-gallery .blocks-gallery-item figure { .wp-block-gallery.is-cropped .blocks-gallery-image a, .wp-block-gallery.is-cropped .blocks-gallery-image img, .wp-block-gallery.is-cropped .blocks-gallery-item a, .wp-block-gallery.is-cropped .blocks-gallery-item img { |
Issue Overview
Crop images on gallery stopped working in 2.2.2 (horizontal images are lower than vertical ones).
Steps to Reproduce (for bugs)
Expected Behavior
Images should be cropped like were in Gutenberg 2.1
Current Behavior
Images are not cropped.
Related Issues and/or PRs
Related to gallery captions css changes #1443 .
Problem is with styles for
.wp-block-gallery .blocks-gallery-item figure
which has nowdisplay: flex
. Reverting todispaly: block
fixes the problem with cropping (but probably destroys captions placement).The text was updated successfully, but these errors were encountered: