#55884 closed defect (bug) (reported-upstream)
Image aligned center disappears in the editor
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Priority: | normal | |
| Severity: | normal | Version: | |
| Component: | Editor | Keywords: | |
| Focuses: | Cc: |
Change History (5)
#2
@
4 years ago
I acted too fast, my apologies. I see the problem doesn't exist on another site with the same child theme. I'll have to get approval from this site's owner to work further on this. I don't think the theme is the issue but perhaps a plugin conflict but that's just a guess.
#3
@
4 years ago
- Keywords reporter-feedback added
Then it probably is not the theme. When you test again, could you try adding the same image in both sites' posts (if you have not done so already)?
#4
@
7 months ago
- Keywords reporter-feedback removed
- Milestone Awaiting Review deleted
- Resolution set to reported-upstream
- Status changed from new to closed
The image on your site is in SVG format without specific width and height attributes, and using the alignment options (left, center or right) could make that very small in the editor (now a minimum of 20 by 20 pixels instead of 0 by 0).
GB57717 focuses on the Site Logo block, but I think it is the same basic issue with the resizable container and SVG.
I'll close the ticket as 'reported-upstream' now. If I'm wrong about that being the same or similar enough, this might need its own issue on the Gutenberg repository.

This might involve the (child) theme stylesheet. I tried centering a JPEG inside a Genesis Blocks "Container" block using Twenty Twenty-Two (and again with the Genesis Sample theme), and the image still displayed in the editor.
Block editor-related reports belong on the Gutenberg GitHub repository, so could you open an issue there if it is not the theme but something else I missed?