Skip to content
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

Different look backend vs frontend. Blocks have less width compared to frontend. #51371

Closed
paaljoachim opened this issue Jun 9, 2023 · 3 comments · Fixed by #51431
Closed
Assignees
Labels
[Block] Post Content Affects the Post Content Block [Feature] Layout Layout block support, its UI controls, and style output. [Type] Bug An existing feature does not function as intended

Comments

@paaljoachim
Copy link
Contributor

Description

Hei

I have come across this a few times. It might be me misunderstanding a setting.

I have noticed the frontend looks like this:
Screenshot 2023-06-09 at 12 25 49

Clicking to edit the front page going to the backend in the post editor it looks like this:
Screenshot 2023-06-09 at 12 26 03

Clicking to edit the Front Page template I see this:
Screenshot 2023-06-09 at 12 29 48

I am using Twenty Twenty Three. WordPress 6.2.2. Various plugins as well as the latest Gutenberg plugin. As I mentioned I have seen this earlier. I do not understand why the Post Editor is showing the full width block smaller in the backend.

Step-by-step reproduction instructions

Screenshots, screen recording, code snippet

Environment info

Please confirm that you have searched existing issues in the repo.

No

Please confirm that you have tested with all plugins deactivated except Gutenberg.

No

@paaljoachim paaljoachim added the [Type] Bug An existing feature does not function as intended label Jun 9, 2023
@ndiego
Copy link
Member

ndiego commented Jun 12, 2023

This is due to "Inner blocks use content width" not being enabled on the Post Content block. I would consider this a bug, though, because there are some default widths that get applied in the Post Editor if there is no layout setting. I believe this might be a backward compatibility thing, but a confusing experience nonetheless for block themes.

@ndiego ndiego added [Block] Post Content Affects the Post Content Block [Feature] Layout Layout block support, its UI controls, and style output. labels Jun 12, 2023
@ndiego
Copy link
Member

ndiego commented Jun 12, 2023

cc @andrewserong @tellthemachines any chance you would be able to look at this when you have a second? The following CSS still get applied in the Post Editor, even when Inner blocks use content width" is disabled. Note the 720px is the contentSize in the theme I am testing.

image

@tellthemachines
Copy link
Contributor

Thanks for reporting, this looks like a bug in the post editor styles. Looking into it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Post Content Affects the Post Content Block [Feature] Layout Layout block support, its UI controls, and style output. [Type] Bug An existing feature does not function as intended
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

4 participants