-
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
Site Editor: Image Block lacks alignment controls #38802
Comments
I think inside the template, individual blocks need containers (Group or similar) for alignment. We need to document the Layout and Alignment relation somewhere. I don't remember if there was a "Make/Core" post related to this change. Cc @youknowriad, @ntsekouras. |
That's true. The alignments depend on their container and in site editor we assume there is no container because that's the whole page in front end. What this means is that by default root level blocks take all the available space which is 100%. In post editor we already have a container and the The dev note for layouts is here: https://make.wordpress.org/core/2021/06/29/on-layout-and-content-width-in-wordpress-5-8/ |
Thanks, Nik. |
Hmm this definitely seems to result in a confusing experience! The same person also reported the following:
It's not quite intuitive that one needs to add a Group block > Cover block > Image block in order to have this work properly. Is this "working as expected" and more of a design experience to help guide folks to know what to do? Curious how to move this forward but that seems best from what I'm seeing :) One thought is to just defer to this issue on simplifying the layout concept but that doesn't help the initial problem of folks not knowing they need to add a container block in the first place: #36082 |
Going to close this out and defer to the simplifying layout controls issue. |
Description
This came up as part of the FSE Outreach Program's All Things Media exploration:
Possibly related: #38557
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
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: