mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-29 23:57:41 +02:00
Twenty Twenty-One: Correct default image alignment in the editor.
By default, the theme centers images on the front end when no alignment is selected. In the editor, however, images were aligned to the left side of the block. This commit ensures that the alignment in the editor matches the one on the front end. Props sabernhardt, ashfame, poena, annezazu. Fixes #53809. Built from https://develop.svn.wordpress.org/trunk@52142 git-svn-id: http://core.svn.wordpress.org/trunk@51734 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
00403bc675
commit
97f3ab0f2a
@ -1458,6 +1458,7 @@ h6 {
|
||||
}
|
||||
|
||||
/* Center image block by default in the editor */
|
||||
.wp-block-image,
|
||||
.wp-block-image > div {
|
||||
text-align: center;
|
||||
}
|
||||
|
@ -1127,6 +1127,7 @@ h6,
|
||||
}
|
||||
|
||||
/* Center image block by default in the editor */
|
||||
.wp-block-image,
|
||||
.wp-block-image > div {
|
||||
text-align: center;
|
||||
}
|
||||
|
@ -1,5 +1,6 @@
|
||||
/* Center image block by default in the editor */
|
||||
|
||||
.wp-block-image,
|
||||
.wp-block-image > div {
|
||||
text-align: center;
|
||||
}
|
||||
|
@ -16,7 +16,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.9-alpha-52141';
|
||||
$wp_version = '5.9-alpha-52142';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user