|
1 | | -<div class="search-wrapper flex flex-row flex-wrap sm:flex-nowrap align-items-center justify-center"> |
2 | | - <mat-select class="search-filter sm:flex-[0_0_20%] flex-[0_0_80%] h-[45px]" placeholder="All" [(value)]="navFilter"> |
3 | | - <mat-option value="all">All</mat-option> |
4 | | - <mat-option value="term">Term</mat-option> |
5 | | - <mat-option value="disease">Disease</mat-option> |
6 | | - <mat-option value="gene">Gene</mat-option> |
7 | | - </mat-select> |
8 | | - <input class="searchbar flex-[0_0_80%]" matInput placeholder="Search for phenotypes, diseases or genes..." |
9 | | - (input)="contentChanging($event.target.value)" |
10 | | - (keyup.enter)="submitQuery($event.target.value)" |
11 | | - (focus)="toggleDropdown($event)" |
12 | | - [(ngModel)]="queryString" #searchbar> |
13 | | - <div class="search-output mat-elevation-z4 flex-[1_1_100%]" [@searchState]="searchstate"> |
| 1 | +<div class="search-wrapper flex flex-row flex-wrap align-items-center justify-center"> |
| 2 | + <div class="w-full flex flex-row flex-wrap sm:flex-nowrap align-items-center justify-center"> |
| 3 | + <mat-select class="search-filter sm:flex-[0_0_20%] flex-[0_0_80%] h-[45px]" placeholder="All" [(value)]="navFilter"> |
| 4 | + <mat-option value="all">All</mat-option> |
| 5 | + <mat-option value="term">Term</mat-option> |
| 6 | + <mat-option value="disease">Disease</mat-option> |
| 7 | + <mat-option value="gene">Gene</mat-option> |
| 8 | + </mat-select> |
| 9 | + <input class="searchbar flex-[0_0_80%]" matInput placeholder="Search for phenotypes, diseases or genes..." |
| 10 | + (input)="contentChanging($event.target.value)" |
| 11 | + (keyup.enter)="submitQuery($event.target.value)" |
| 12 | + (focus)="toggleDropdown($event)" |
| 13 | + [(ngModel)]="queryString" #searchbar> |
| 14 | + </div> |
| 15 | + <div class="search-output mat-elevation-z4 w-[80%] sm:ml-[20%] align-items-center justify-center" [@searchState]="searchstate"> |
14 | 16 | <div class="search-all" *ngIf="!notFoundFlag"> |
15 | 17 | <a routerLink="/browse/search" [queryParams]="{'q': queryText, 'navFilter': 'all'}" *ngIf="queryText"> |
16 | 18 | See all results for '{{queryText}}' |
@@ -65,8 +67,11 @@ <h3>Sorry no results have been found!</h3> |
65 | 67 | </div> |
66 | 68 | </div> |
67 | 69 | </div> |
68 | | -<p class="hint w-full" *ngIf="searchstate !== 'active'"> |
69 | | - <strong>e.g. <a (click)="setQuery('Arachnodactyly')">Arachnodactyly</a> | |
| 70 | +<div class="flex flex-row flex-wrap align-items-center justify-center"> |
| 71 | + <p class="hint w-full" *ngIf="showHint && searchstate !== 'active'"> |
| 72 | + <strong>e.g. <a (click)="setQuery('Arachnodactyly')">Arachnodactyly</a> | |
70 | 73 | <a (click)="setQuery('Marfan syndrome')">Marfan syndrome</a> | |
71 | 74 | <a (click)="setQuery('FBN1')">FBN1</a></strong> |
72 | | -</p> |
| 75 | + </p> |
| 76 | +</div> |
| 77 | + |
0 commit comments