|
10 | 10 | </div> |
11 | 11 | <span class="views-title text">My Views</span> |
12 | 12 | @if (canCreate$ | async) { |
13 | | - <button |
14 | | - mat-icon-button |
15 | | - matTooltip="Add New View" |
16 | | - (click)="create()" |
17 | | - > |
| 13 | + <button mat-icon-button matTooltip="Add New View" (click)="create()"> |
18 | 14 | <mat-icon class="mdi-24px" fontIcon="mdi-plus-circle"> </mat-icon> |
19 | 15 | </button> |
20 | 16 | } |
21 | | - <div class="searchBox d-flex align-items-center"> |
22 | | - <mat-icon |
23 | | - class="text" |
24 | | - style="transform: scale(0.85); margin-right: 5px" |
25 | | - svgIcon="ic_magnify_search" |
26 | | - ></mat-icon> |
27 | | - <mat-form-field style="width: 320px"> |
| 17 | + <div class="searchBox my-1"> |
| 18 | + <mat-form-field style="width: 320px" subscriptSizing="dynamic"> |
| 19 | + <mat-icon |
| 20 | + matPrefix |
| 21 | + class="text" |
| 22 | + style="transform: scale(0.85); margin-right: 5px" |
| 23 | + svgIcon="ic_magnify_search" |
| 24 | + ></mat-icon> |
28 | 25 | <input |
29 | 26 | matInput |
30 | 27 | [(ngModel)]="filterString" |
31 | 28 | (keyup)="applyFilter($event.target.value)" |
32 | 29 | placeholder="Search" |
33 | | - /> |
| 30 | + /> |
34 | 31 | @if (filterString !== '') { |
35 | 32 | <button |
36 | 33 | mat-icon-button |
37 | 34 | matSuffix |
38 | 35 | (click)="clearFilter()" |
39 | 36 | title="Clear Search" |
40 | | - > |
| 37 | + > |
41 | 38 | <mat-icon |
42 | 39 | style="transform: scale(0.85)" |
43 | 40 | svgIcon="ic_cancel_circle" |
|
49 | 46 | </div> |
50 | 47 |
|
51 | 48 | @if (isLoading) { |
52 | | - <mat-card |
53 | | - class="d-flex justify-content-center align-items-center" |
54 | | - > |
| 49 | + <mat-card class="d-flex justify-content-center align-items-center"> |
55 | 50 | <mat-progress-spinner color="primary" mode="indeterminate"> |
56 | 51 | </mat-progress-spinner> |
57 | 52 | </mat-card> |
|
63 | 58 | matSort |
64 | 59 | matSortActive="name" |
65 | 60 | matSortDirection="asc" |
66 | | - > |
| 61 | + > |
67 | 62 | <!--- Note that these columns can be defined in any order. |
68 | 63 | The actual rendered columns are set as a property on the row definition" --> |
69 | 64 | <!-- Name Column --> |
|
77 | 72 | [routerLink]="['/view', element.id]" |
78 | 73 | [queryParams]="{ teamId: asdf }" |
79 | 74 | >{{ element.name }}</a |
80 | | - > |
81 | | - </div> |
82 | | - </mat-cell> |
83 | | - </ng-container> |
| 75 | + > |
| 76 | + </div> |
| 77 | + </mat-cell> |
| 78 | + </ng-container> |
84 | 79 |
|
85 | | - <!-- Name Column --> |
86 | | - <ng-container matColumnDef="description"> |
87 | | - <mat-header-cell *matHeaderCellDef> Description </mat-header-cell> |
88 | | - <mat-cell *matCellDef="let element"> |
89 | | - <div class="description-text">{{ element.description }}</div> |
90 | | - </mat-cell> |
91 | | - </ng-container> |
| 80 | + <!-- Name Column --> |
| 81 | + <ng-container matColumnDef="description"> |
| 82 | + <mat-header-cell *matHeaderCellDef> Description </mat-header-cell> |
| 83 | + <mat-cell *matCellDef="let element"> |
| 84 | + <div class="description-text">{{ element.description }}</div> |
| 85 | + </mat-cell> |
| 86 | + </ng-container> |
92 | 87 |
|
93 | | - <mat-header-row *matHeaderRowDef="displayedColumns"></mat-header-row> |
94 | | - <mat-row *matRowDef="let row; columns: displayedColumns"></mat-row> |
95 | | - </mat-table> |
96 | | - @if (dataSource.filteredData.length === 0) { |
97 | | - <div class="text no-results"> |
98 | | - No results found |
99 | | - </div> |
100 | | - } |
101 | | - </div> |
| 88 | + <mat-header-row *matHeaderRowDef="displayedColumns"></mat-header-row> |
| 89 | + <mat-row *matRowDef="let row; columns: displayedColumns"></mat-row> |
| 90 | + </mat-table> |
| 91 | + @if (dataSource.filteredData.length === 0) { |
| 92 | + <div class="text no-results">No results found</div> |
| 93 | + } |
| 94 | +</div> |
0 commit comments