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,4 +1,5 @@
<mat-tab-group id="tab-group" selectedIndex="0" mat-stretch-tabs> <div id="content" fxShow="true" fxHide.lt-md="true">
<mat-tab-group selectedIndex="0" mat-stretch-tabs>
<mat-tab> <mat-tab>
<ng-template mat-tab-label> <ng-template mat-tab-label>
<mat-icon>people</mat-icon> <mat-icon>people</mat-icon>
@ -12,6 +13,11 @@
</ng-template> </ng-template>
<home-search class="tab-content"></home-search> <home-search class="tab-content"></home-search>
</mat-tab> </mat-tab>
</mat-tab-group> </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