We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When an image is left or right aligned, how it looks on the editor does not match the actual site.
I expect that the image is left aligned with the text, but it's not
Editor
Front end
Note that the float for alignment is applied to the block container in the editor
But the figure element inside the container on the front-end
Yes
The text was updated successfully, but these errors were encountered:
I have the same problem. I temporarily solve it with an editor-style:
.editor-styles-wrapper .block-editor-block-list__layout.is-root-container > .wp-block[data-align="left"] { margin-left: calc((100% - <value-of-settings.layout.contentSize-of-theme.json> ) / 2) !important; }
Sorry, something went wrong.
It appears this is now at least consistent, if not expected. Left or right aligned images now escape the container on the front end, as well.
A modified version of @maxwrlr solution worked for me:
.is-layout-constrained > .wp-block.alignleft { margin-left: calc((100% - var(--wp--style--global--content-size)) / 2) !important; } .is-layout-constrained > .wp-block.alignright { margin-right: calc((100% - var(--wp--style--global--content-size)) / 2) !important; }
No branches or pull requests
Description
When an image is left or right aligned, how it looks on the editor does not match the actual site.
Step-by-step reproduction instructions
I expect that the image is left aligned with the text, but it's not
Screenshots, screen recording, code snippet
Editor
Front end
Note that the float for alignment is applied to the block container in the editor
But the figure element inside the container on the front-end
Environment info
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: