Skip to content

Commit

Permalink
Themes: Improve the alignment of feature filters and inputs on Add Th…
Browse files Browse the repository at this point in the history
…emes 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
  • Loading branch information
SergeyBiryukov committed Sep 15, 2024
1 parent dc60d05 commit 6b81c17
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
22 changes: 19 additions & 3 deletions src/wp-admin/css/common.css
Original file line number Diff line number Diff line change
Expand Up @@ -1180,6 +1180,17 @@ th.action-links {
overflow: hidden;
}

.wp-filter .favorites-form .favorites-username {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 0.5rem;
}

.wp-filter .favorites-form .favorites-username input {
margin: 0;
}

.show-filters .filter-drawer,
.show-favorites-form .favorites-form {
display: block;
Expand Down Expand Up @@ -1288,11 +1299,13 @@ th.action-links {
}

.filtered-by .tags {
display: inline;
display: flex;
align-items: flex-start;
flex-wrap: wrap;
gap: 8px;
}

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

.filters-applied .filtered-by {
display: block;
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 10px;
}

.filters-applied .filter-drawer {
Expand Down
2 changes: 1 addition & 1 deletion src/wp-admin/theme-install.php
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@
?>
<p class="install-help"><?php _e( 'If you have marked themes as favorites on WordPress.org, you can browse them here.' ); ?></p>

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

0 comments on commit 6b81c17

Please sign in to comment.