mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-30 23:30:05 +00:00
Customizer: Better experience for widget filtering in desktop and iOS Safari.
Previously, the search field did not appear at all in desktop Safari, and the auto-focus keyboard fly-up in iOS rendered widget adding frustrating at best. props dsmart, ocean90. fixes #31987. git-svn-id: https://develop.svn.wordpress.org/trunk@32243 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -342,7 +342,7 @@ body.adding-widget .add-new-widget:before {
|
||||
#available-widgets {
|
||||
position: absolute;
|
||||
overflow: auto;
|
||||
top: 46px;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
left: -301px;
|
||||
width: 300px;
|
||||
@@ -354,6 +354,14 @@ body.adding-widget .add-new-widget:before {
|
||||
border-right: 1px solid #dddddd;
|
||||
}
|
||||
|
||||
#available-widgets-list {
|
||||
top: 46px;
|
||||
position: absolute;
|
||||
overflow: auto;
|
||||
bottom: 0;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#available-widgets-filter {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
@@ -614,6 +622,7 @@ body.adding-widget #customize-preview {
|
||||
|
||||
@media screen and ( max-width: 640px ) {
|
||||
body.adding-widget div#available-widgets {
|
||||
top: 46px;
|
||||
left: 0;
|
||||
z-index: 10;
|
||||
width: 100%;
|
||||
|
||||
@@ -294,7 +294,9 @@
|
||||
// Reset search
|
||||
this.collection.doSearch( '' );
|
||||
|
||||
this.$search.focus();
|
||||
if ( ! api.settings.browser.mobile ) {
|
||||
this.$search.focus();
|
||||
}
|
||||
},
|
||||
|
||||
// Closes the panel
|
||||
|
||||
Reference in New Issue
Block a user