Skip to content

Commit d73d97a

Browse files
committed
Trying to make search box fixed.
1 parent 6155132 commit d73d97a

1 file changed

Lines changed: 13 additions & 13 deletions

File tree

src/app/home/components/search.component.html

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
<div fxLayout="column" fxLayoutAlign="start stretch">
2-
<form>
3-
<div fxLayout="row"
4-
fxLayoutAlign="center center"
5-
class="search-form"
6-
slot="fixed"
7-
fxLayoutGap="10px"
8-
style="background-color: #424242;">
1+
<form>
2+
<div fxLayout="row"
3+
fxLayoutAlign="center center"
4+
class="search-form"
5+
slot="fixed"
6+
fxLayoutGap="10px"
7+
style="background-color: #424242; position: relative;">
98
<mat-form-field class="search-input-form-field" fxFlex="25">
109
<mat-label>关键字</mat-label>
1110
<input type="text" matInput [formControl]="keywordsFormControl"
@@ -36,9 +35,10 @@
3635
[disabled]="!keywordsFormControl.valid">
3736
<ion-text color="light"><ion-icon name="search-outline"></ion-icon>搜索</ion-text>
3837
</button>
39-
</div>
40-
</form>
38+
</div>
39+
</form>
4140

41+
<div fxLayout="column" fxLayoutAlign="start stretch">
4242
<div fxLayout="row" fxLayoutAlign="none stretch" style="background-color: white;">
4343
<!--搜索结果-->
4444
<div fxFlex="60" fxLayout="column"
@@ -49,9 +49,9 @@
4949
<mat-card class="search-result" *ngFor="let book of bookList">
5050
<mat-card-header>
5151
<img mat-card-avatar
52-
uiImageLoader
53-
onErrorSrc="assets/images/avatar.png"
54-
[src]="book.writerAvatarUrl" />
52+
uiImageLoader
53+
onErrorSrc="assets/images/avatar.png"
54+
[src]="book.writerAvatarUrl" />
5555
<mat-card-title>
5656
{{book.fullName}}
5757
</mat-card-title>

0 commit comments

Comments
 (0)