fixed search field

master
Max 5 years ago
parent ce072d41b1
commit 1c096cd655

@ -3,8 +3,11 @@
<mat-card > <mat-card >
<mat-card-content> <mat-card-content>
<mat-form-field id="input"> <mat-form-field id="input">
<textarea matInput #searchWord type="search" mat-autosize="false" matAutosizeMaxRows="1" placeholder="search something" <textarea matInput #searchWord type="search"
[ngModel]="searchWord" mat-autosize="false"
matAutosizeMaxRows="1"
placeholder="search something"
[ngModel]="searchWord.value"
(ngModelChange)="search(searchWord.value)"></textarea> (ngModelChange)="search(searchWord.value)"></textarea>
<button mat-button matSuffix mat-icon-button> <button mat-button matSuffix mat-icon-button>
<mat-icon>search </mat-icon> <mat-icon>search </mat-icon>

@ -11,7 +11,7 @@ import { Router } from '@angular/router';
styleUrls: ['./search.component.sass'] styleUrls: ['./search.component.sass']
}) })
export class SearchComponent implements OnInit { export class SearchComponent implements OnInit {
searchValue: string; searchValue = ' ';
category = 'username'; category = 'username';
foundUsers: Array<User>; foundUsers: Array<User>;

@ -1,17 +1,23 @@
<mat-tab-group id="tab-group" selectedIndex="0" mat-stretch-tabs> <div id="content" fxShow="true" fxHide.lt-md="true">
<mat-tab> <mat-tab-group selectedIndex="0" mat-stretch-tabs>
<ng-template mat-tab-label> <mat-tab>
<mat-icon>people</mat-icon> <ng-template mat-tab-label>
</ng-template> <mat-icon>people</mat-icon>
<social-friends id="friendscontainer"></social-friends> </ng-template>
<social-groups id="groupscontainer"></social-groups> <social-friends id="friendscontainer"></social-friends>
</mat-tab> <social-groups id="groupscontainer"></social-groups>
<mat-tab> </mat-tab>
<ng-template mat-tab-label> <mat-tab>
<mat-icon>search</mat-icon> <ng-template mat-tab-label>
</ng-template> <mat-icon>search</mat-icon>
<home-search class="tab-content"></home-search> </ng-template>
</mat-tab> <home-search class="tab-content"></home-search>
</mat-tab-group> </mat-tab>
</mat-tab-group>
</div>
<div fxShow="true" fxHide.gt-sm="true">
<social-friends id="friendscontainer"></social-friends>
<social-groups id="groupscontainer"></social-groups>
</div>

Loading…
Cancel
Save