Skip to content

Commit 0a50158

Browse files
andrewseguintinayuangao
authored andcommitted
chore(examples): minor fixes (#10739)
1 parent 4211b39 commit 0a50158

File tree

9 files changed

+11
-32
lines changed

9 files changed

+11
-32
lines changed

src/material-examples/chips-autocomplete/chips-autocomplete-example.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
/>
2121
</mat-chip-list>
2222
<mat-autocomplete #auto="matAutocomplete" (optionSelected)="selected($event)">
23-
<mat-option *ngFor="let fruit of filteredFruits | async" [value]="option">
23+
<mat-option *ngFor="let fruit of filteredFruits | async" [value]="fruit">
2424
{{ fruit }}
2525
</mat-option>
2626
</mat-autocomplete>

src/material-examples/sidenav-open-close/sidenav-open-close-example.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ import {Component} from '@angular/core';
77
styleUrls: ['sidenav-open-close-example.css'],
88
})
99
export class SidenavOpenCloseExample {
10-
events = [];
10+
events: string[] = [];
11+
opened: boolean;
1112

1213
shouldRun = [/(^|\.)plnkr\.co$/, /(^|\.)stackblitz\.io$/].some(h => h.test(window.location.host));
1314
}

src/material-examples/table-basic/table-basic-example.css

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,5 @@
33
flex-direction: column;
44
max-height: 500px;
55
min-width: 300px;
6-
}
7-
8-
.mat-table {
96
overflow: auto;
10-
max-height: 500px;
117
}

src/material-examples/table-filtering/table-filtering-example.css

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
display: flex;
44
flex-direction: column;
55
min-width: 300px;
6+
max-height: 500px;
7+
overflow: auto;
68
}
79

810
.example-header {
@@ -14,8 +16,3 @@
1416
font-size: 14px;
1517
width: 100%;
1618
}
17-
18-
.mat-table {
19-
overflow: auto;
20-
max-height: 500px;
21-
}

src/material-examples/table-http/table-http-example.css

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22
.example-container {
33
display: flex;
44
flex-direction: column;
5-
max-height: 500px;
65
min-width: 300px;
76
position: relative;
7+
max-height: 500px;
8+
overflow: auto;
89
}
910

1011
.example-header {
@@ -15,11 +16,6 @@
1516
font-size: 20px;
1617
}
1718

18-
.example-table {
19-
overflow: auto;
20-
min-height: 300px;
21-
}
22-
2319
.example-loading-shade {
2420
position: absolute;
2521
top: 0;

src/material-examples/table-overview/table-overview-example.css

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
display: flex;
33
flex-direction: column;
44
min-width: 300px;
5+
max-height: 500px;
6+
overflow: auto;
57
}
68

79
.example-header {
@@ -14,7 +16,3 @@
1416
width: 100%;
1517
}
1618

17-
.mat-table {
18-
overflow: auto;
19-
max-height: 500px;
20-
}

src/material-examples/table-pagination/table-pagination-example.css

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
display: flex;
33
flex-direction: column;
44
min-width: 300px;
5-
}
6-
7-
.mat-table {
8-
overflow: auto;
95
max-height: 500px;
6+
overflow: auto;
107
}
8+

src/material-examples/table-selection/table-selection-example.css

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,7 @@
33
flex-direction: column;
44
max-height: 500px;
55
min-width: 300px;
6-
}
7-
8-
.mat-table {
96
overflow: auto;
10-
max-height: 500px;
117
}
128

139
.mat-column-select {

src/material-examples/table-sorting/table-sorting-example.css

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
display: flex;
33
flex-direction: column;
44
min-width: 300px;
5-
}
6-
7-
.mat-table {
85
overflow: auto;
96
max-height: 500px;
107
}

0 commit comments

Comments
 (0)