Hi there,
Sorry about this – looks like a bug when setting the content width in a Layout Element and our 3.1.2 update.
As a quick fix until we release 3.1.3, you can do this:
add_action( 'enqueue_block_editor_assets', function() {
global $generate_elements;
foreach ( $generate_elements as $element ) {
if ( 'layout' === $element['type'] ) {
$content_width = get_post_meta( $element['id'], '_generate_content_width', true );
if ( $content_width ) {
$admin_css = 'body .wp-block{max-width: ' . absint( $content_width ) . 'px !important;}';
wp_add_inline_style( 'generate-block-editor-styles', $admin_css );
}
}
}
}, 100 );
Let me know if that works or not 🙂