-
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
Post Content block in post template always appears full width in site editor. #53752
Comments
I guess the post content block is only visually part of the template within the editor and technically the main inner block of of the actual page. Meaning that it only indicates the applied color within the editor to let users know. Maybe the devs could remove this color option and create another toggle for inner content color, would be more consistent. |
Thanks for reporting this! I can confirm that the Content block inside a Post Template doesn't have any layout classnames applied in the editor. Looking into it. |
Looks like the value of |
I think it should be fine that
I'll have a hack around and see where we can add the layout classnames in, if no-one beats me to it! |
I have a draft PR up over in #53864 — I think it's mostly working, but I've run out of time for today. I'll do some more manual testing tomorrow to make sure I haven't missed anything or accidentally introduced any regressions, and then will get it ready for review! |
I don't know if it's related, however custom post type now always have layout flow class applied. Check here for details. |
#53864 appears to be working pretty well to fix this bug, so I've switched it over to ready for review.
Thanks for raising that one! While similar, I believe it's a different bug so will require a separate fix. |
Description
The post content block inside a post template always appears full width in the site editor.
Let's say, you want to show the full content, not just excerpts of posts in the archive template.
This is the markup to test the scenario.
Notice the post content's layout is set to constrained, but all the content is stretched out in the site editor.
Toggling the layout option doesn't make a difference, which I believe is the issue.
The front of the site shows what I expected.
I used Twnety Twenty-three theme, but this isn't a theme-specific issue. I didn't think this was expected, and I couldn't find a report describing this issue, but I apologise if this is a known issue!
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
No response
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: