Skip to content

Commit 6b81c17

Browse files
Themes: Improve the alignment of feature filters and inputs on Add Themes screen.
Follow-up to [35527], [38640], [40797]. Props Benjamin_Zekavica, sabernhardt, sumitsingh, gauravtiwari, krupajnanda, audrasjb, SergeyBiryukov. Fixes #53314. git-svn-id: https://develop.svn.wordpress.org/trunk@59022 602fd350-edb4-49c9-b593-d223f7449a82
1 parent dc60d05 commit 6b81c17

File tree

2 files changed

+20
-4
lines changed

2 files changed

+20
-4
lines changed

Diff for: src/wp-admin/css/common.css

+19-3
Original file line numberDiff line numberDiff line change
@@ -1180,6 +1180,17 @@ th.action-links {
11801180
overflow: hidden;
11811181
}
11821182

1183+
.wp-filter .favorites-form .favorites-username {
1184+
display: flex;
1185+
align-items: center;
1186+
flex-wrap: wrap;
1187+
gap: 0.5rem;
1188+
}
1189+
1190+
.wp-filter .favorites-form .favorites-username input {
1191+
margin: 0;
1192+
}
1193+
11831194
.show-filters .filter-drawer,
11841195
.show-favorites-form .favorites-form {
11851196
display: block;
@@ -1288,11 +1299,13 @@ th.action-links {
12881299
}
12891300

12901301
.filtered-by .tags {
1291-
display: inline;
1302+
display: flex;
1303+
align-items: flex-start;
1304+
flex-wrap: wrap;
1305+
gap: 8px;
12921306
}
12931307

12941308
.filtered-by .tag {
1295-
margin: 0 5px;
12961309
padding: 4px 8px;
12971310
border: 1px solid #dcdcde;
12981311
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
@@ -1307,7 +1320,10 @@ th.action-links {
13071320
}
13081321

13091322
.filters-applied .filtered-by {
1310-
display: block;
1323+
display: flex;
1324+
align-items: center;
1325+
flex-wrap: wrap;
1326+
gap: 10px;
13111327
}
13121328

13131329
.filters-applied .filter-drawer {

Diff for: src/wp-admin/theme-install.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@
230230
?>
231231
<p class="install-help"><?php _e( 'If you have marked themes as favorites on WordPress.org, you can browse them here.' ); ?></p>
232232

233-
<p>
233+
<p class="favorites-username">
234234
<label for="wporg-username-input"><?php _e( 'Your WordPress.org username:' ); ?></label>
235235
<input type="hidden" id="wporg-username-nonce" name="_wpnonce" value="<?php echo esc_attr( wp_create_nonce( $action ) ); ?>" />
236236
<input type="search" id="wporg-username-input" value="<?php echo esc_attr( $user ); ?>" />

0 commit comments

Comments
 (0)