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.

git-svn-id: https://develop.svn.wordpress.org/trunk@52142 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2021-11-11 19:33:48 +00:00
parent 04f62997d3
commit 9451b13db3
5 changed files with 5 additions and 2 deletions

View File

@ -1458,6 +1458,7 @@ h6 {
}
/* Center image block by default in the editor */
.wp-block-image,
.wp-block-image > div {
text-align: center;
}

File diff suppressed because one or more lines are too long

View File

@ -1127,6 +1127,7 @@ h6,
}
/* Center image block by default in the editor */
.wp-block-image,
.wp-block-image > div {
text-align: center;
}

File diff suppressed because one or more lines are too long

View File

@ -1,5 +1,6 @@
/* Center image block by default in the editor */
.wp-block-image,
.wp-block-image > div {
text-align: center;
}