-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Gallery block: Empty space on front-end when an empty image block is added #39612
Comments
This is replicating the behaviour of the Image block, which also adds an empty empty-image.mp4I wonder if we also want to remove the empty tags for the standalone Image block, or if there is a reason why these are left in the frontend markup? |
Is it possible to remove this extra box around the image? My usecase is a bit different, I want to have this visual space, but only for the large, not the mobile gallery. I want each row to have the same column size, but that seems currently not possible, isnt it? |
Sorry, ignore my comment - only relevant to images in a gallery. I just saw #39952 |
This issue cannot be reproduced with trunk and appears to be resolved by #45220 and #55269. Image BlockEditorThere is an image block with no media set between two paragraphs. FrontendNothing is rendered between the paragraph blocks. Gallery BlockEditorContains two image blocks with no media set. FrontendEmpty image blocks are not rendered and there are no empty columns. I would like to close this issue, but please let us know if you are still experiencing issues. |
Description
When an empty image block is added to a gallery and saved, it creates an empty space, both in the editor and on the site's front-end.
My expectation would be for empty image blocks to have no impact on the gallery's appearance on the front-end.
This was first brought up in wordpress-mobile/gutenberg-mobile#4317. It can be replicated in both the mobile app and on the web.
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
The following is a recording of the steps to reproduce on the web:
Screen.Recording.2022-03-21.at.13.47.23.mov
The following video shows the steps to replicate the issue in the mobile app, including a preview of the site's front-end where the empty image placeholder can be viewed:
Gallery.mov
Environment info
Tested in both the latest version of the WordPress Android app and the latest version of Gutenberg running on a WordPress.com site.
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: