Skip to content

Commit 1d693f8

Browse files
committed
Plugins: Fix alignment of Favorites input and submit.
Fix the alignment of the label, input field, and Submit button for getting your user favorites in the plugins screen. Modernizes layout to use flex layout and improves small viewports. Developed in WordPress#11806 Props bayejid00, deepakprajapati, shreyasikhar26, tusharaddweb, joedolson, sabernhardt. Fixes #65231. git-svn-id: https://develop.svn.wordpress.org/trunk@62697 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 2fd1ef4 commit 1d693f8

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

src/wp-admin/css/common.css

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1198,14 +1198,16 @@ th.action-links {
11981198
overflow: hidden;
11991199
}
12001200

1201-
.wp-filter .favorites-form .favorites-username {
1201+
.wp-filter .favorites-form .favorites-username,
1202+
.plugin-install-tab-favorites .favorites-username {
12021203
display: flex;
12031204
align-items: center;
12041205
flex-wrap: wrap;
12051206
gap: 0.5rem;
12061207
}
12071208

1208-
.wp-filter .favorites-form .favorites-username input {
1209+
.wp-filter .favorites-form .favorites-username input,
1210+
.plugin-install-tab-favorites .favorites-username input {
12091211
margin: 0;
12101212
}
12111213

src/wp-admin/includes/plugin-install.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ function install_plugins_favorites_form() {
370370
<p><?php _e( 'If you have marked plugins as favorites on WordPress.org, you can browse them here.' ); ?></p>
371371
<form method="get">
372372
<input type="hidden" name="tab" value="favorites" />
373-
<p>
373+
<p class="favorites-username">
374374
<label for="user"><?php _e( 'Your WordPress.org username:' ); ?></label>
375375
<input type="search" id="user" name="user" value="<?php echo esc_attr( $user ); ?>" />
376376
<input type="submit" class="button" value="<?php esc_attr_e( 'Get Favorites' ); ?>" />

0 commit comments

Comments
 (0)