You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For example, activate a plugin with apiVersion 2 blocks such as CoBlocks. The content width would then be applied to the content in the pattern preview.
Specifically, the following styles will be added in the pattern preview.
.editor-styles-wrapper .block-editor-block-list__layout.is-root-container > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
max-width: 650px;
margin-left: auto !important;
margin-right: auto !important;
}
If the apiVersion is only a block of 3, this style will not be loaded.
Even without the block plugin installed, I was able to reproduce the problem by changing wp-includes/blocks/blocks-json.php as follows.
Description
For example, activate a plugin with apiVersion 2 blocks such as CoBlocks. The content width would then be applied to the content in the pattern preview.
Specifically, the following styles will be added in the pattern preview.
If the apiVersion is only a block of 3, this style will not be loaded.
Even without the block plugin installed, I was able to reproduce the problem by changing
wp-includes/blocks/blocks-json.phpas follows.Step-by-step reproduction instructions
wp-includes/blocks/blocks-json.php.Screenshots, screen recording, code snippet
Kapture.2023-06-30.at.15.16.51.mp4
Environment info
This problem does not occur when the Gutenberg (v16.1.0) plugin is activated.
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