Skip to content

Commit 94bd883

Browse files
authored
Merge pull request #21596 from opf/70352-global-search-box-in-small-devices-misses-the-drop-down-list
[70352] Fix bugs in global search box
2 parents e639755 + c1dd5c6 commit 94bd883

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

frontend/src/app/core/global_search/input/global-search-input-mobile.component.sass

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ $search-input-height-mobile: 36px
1111
width: unset
1212
min-width: unset
1313
flex-basis: 100%
14-
position: unset
1514
flex-grow: 1
1615

1716
.scroll-host
@@ -34,11 +33,13 @@ $search-input-height-mobile: 36px
3433
width: 0 !important
3534
padding-left: 0.75rem !important
3635

37-
.ng-input input
36+
.ng-input
3837
height: 36px
38+
top: 0 !important
3939

4040
.ng-dropdown-panel
4141
width: 100% !important
42+
min-width: unset !important
4243

4344
.top-menu-search--back-button
4445
@include unset-button-styles

frontend/src/app/core/global_search/input/global-search-input.component.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
class="global-search"
3535
[placeholder]="effectivePlaceholder"
3636
[ariaLabel]="effectivePlaceholder"
37+
[appendTo]="'#global-search-input'"
3738
[dropdownPosition]="'bottom'"
3839
[classes]="{'top-menu-search--input': true, '-markable': markable, '-expanded': expanded, 'ng-select--primerized': true }"
3940
[inputAttrs]="{ 'class': 'global-search--input', 'name': 'global-search--input', autocomplete: 'off'}"

0 commit comments

Comments
 (0)