Position dropdown directly under input field

pull/7016/head
Inga Mai 6 years ago
parent 2c1678d6ce
commit a4161ae879
  1. 11
      app/assets/stylesheets/layout/_top_menu.sass
  2. 3
      frontend/src/app/modules/global_search/global-search-input.component.ts

@ -190,7 +190,9 @@ $search-input-width-expanded: 300px
color: $header-search-field-font-color
.top-menu-search--loading
top: $header-height
top: $header-height - 11px // display directly under ng-input field
height: 46px // ng-option height + 1px border
z-index: 1051
.ng-select#q
width: $search-input-width
@ -234,12 +236,6 @@ $search-input-width-expanded: 300px
border-radius: 4px
color: $header-search-field-font-color
.ng-select-container
border-radius: 4px !important
.ng-select-bottom
top: calc(100% + 12px)
.ng-placeholder,
.ng-clear-wrapper,
input
@ -253,6 +249,7 @@ $search-input-width-expanded: 300px
.ng-option
border-bottom: 1px solid #EAEAEA
white-space: normal
padding: 5px 10px
&:last-child
border-bottom: none
&.ng-option-marked

@ -172,8 +172,6 @@ export class GlobalSearchInputComponent implements OnInit, OnDestroy {
private autocompleteWorkPackages(query:string):Promise<(any)[]> {
this.dynamicCssService.requireHighlighting();
// hide empty dropdown while spinner is shown
setTimeout( () => this.$element.find('.ng-dropdown-panel').hide());
this.$element.find('.ui-autocomplete--loading').show();
let idOnly:boolean = false;
@ -262,7 +260,6 @@ export class GlobalSearchInputComponent implements OnInit, OnDestroy {
private hideSpinner():void {
this.$element.find('.ui-autocomplete--loading').hide();
this.$element.find('.ng-dropdown-panel').show();
}
private get searchValue() {

Loading…
Cancel
Save