Skip to content

Commit fd25a11

Browse files
authored
XWIKI-23552: Search input outside viewport on small mobile devices (#4608)
* Added wrap on the place where it was missing. * Added a check for sturdiness of the searchSuggest code.
1 parent e45ac96 commit fd25a11

File tree

2 files changed

+3
-1
lines changed
  • xwiki-platform-core
    • xwiki-platform-flamingo/xwiki-platform-flamingo-skin/xwiki-platform-flamingo-skin-resources/src/main/resources/flamingo/less
    • xwiki-platform-search/xwiki-platform-search-webjar/src/main/webjar

2 files changed

+3
-1
lines changed

xwiki-platform-core/xwiki-platform-flamingo/xwiki-platform-flamingo-skin/xwiki-platform-flamingo-skin-resources/src/main/resources/flamingo/less/action-menus.less

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@
2828

2929
&.navbar-right {
3030
display: flex;
31+
flex-wrap: wrap;
32+
justify-content: flex-end;
3133
}
3234
}
3335
.navbar-form {

xwiki-platform-core/xwiki-platform-search/xwiki-platform-search-webjar/src/main/webjar/searchSuggest.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ var XWiki = (function (XWiki) {
129129
onSuggestCollapsed: function(event) {
130130
/* We match the collapse of the input field timing to close the suggest panel.
131131
As of 16.2.0-RC1, this value is defined in action-menus.less -> #headerglobalsearchinput */
132-
this.suggest.resetTimeout($('#headerglobalsearchinput').css('transition-duration'));
132+
this.suggest.resetTimeout($('#headerglobalsearchinput')?.css('transition-duration'));
133133
},
134134

135135
/**

0 commit comments

Comments
 (0)