Skip to content

Commit fe3fa33

Browse files
committed
Twenty Twenty: Fixes image block caption alignment not being centered on mobile.
The image block caption was not being centered on mobile. This was set to start at 1000 pixels and wider. This might have been intended to prevent wrapping, but you can resolve this by unselecting alignment. Props spanglishwebs, sabernhardt, sudipatel007, shailu25. Fixes #50317. git-svn-id: https://develop.svn.wordpress.org/trunk@58909 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 0412c7b commit fe3fa33

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/wp-content/themes/twentytwenty/style-rtl.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1255,6 +1255,10 @@ button.toggle {
12551255
margin-left: auto;
12561256
}
12571257

1258+
.aligncenter figcaption {
1259+
text-align: center;
1260+
}
1261+
12581262
/* Search Form ------------------------------- */
12591263

12601264
.search-form {
@@ -5951,10 +5955,6 @@ a.to-the-top > * {
59515955
margin-left: 0;
59525956
}
59535957

5954-
.wp-block-image .aligncenter figcaption {
5955-
text-align: center;
5956-
}
5957-
59585958
/* BLOCK: SEPARATOR */
59595959

59605960
hr.wp-block-separator {

src/wp-content/themes/twentytwenty/style.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1261,6 +1261,10 @@ button.toggle {
12611261
margin-right: auto;
12621262
}
12631263

1264+
.aligncenter figcaption {
1265+
text-align: center;
1266+
}
1267+
12641268
/* Search Form ------------------------------- */
12651269

12661270
.search-form {
@@ -6023,10 +6027,6 @@ a.to-the-top > * {
60236027
margin-left: 0;
60246028
}
60256029

6026-
.wp-block-image .aligncenter figcaption {
6027-
text-align: center;
6028-
}
6029-
60306030
/* BLOCK: SEPARATOR */
60316031

60326032
hr.wp-block-separator {

0 commit comments

Comments
 (0)