Skip to content

Commit 51eca3b

Browse files
amcdnltinayuangao
authored andcommitted
demos(*): fix inputs spilling over when screen width small (#6155)
* demos(*): fix inputs spilling over when screen width small * chore(*): fix line break
1 parent 20cd8a1 commit 51eca3b

File tree

11 files changed

+39
-16
lines changed

11 files changed

+39
-16
lines changed

src/material-examples/autocomplete-display/autocomplete-display-example.css

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
.example-form {
2-
width: 500px;
2+
min-width: 150px;
3+
max-width: 500px;
4+
width: 100%;
35
}
46

57
.example-full-width {

src/material-examples/autocomplete-filter/autocomplete-filter-example.css

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
.example-form {
2-
width: 500px;
2+
min-width: 150px;
3+
max-width: 500px;
4+
width: 100%;
35
}
46

57
.example-full-width {

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
.example-form {
2-
width: 500px;
2+
min-width: 150px;
3+
max-width: 500px;
4+
width: 100%;
35
}
46

57
.example-full-width {

src/material-examples/autocomplete-simple/autocomplete-simple-example.css

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
.example-form {
2-
width: 500px;
2+
min-width: 150px;
3+
max-width: 500px;
4+
width: 100%;
35
}
46

57
.example-full-width {

src/material-examples/input-errors/input-errors-example.css

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
.example-form {
2-
width: 500px;
3-
max-width: 100%;
2+
min-width: 150px;
3+
max-width: 500px;
4+
width: 100%;
45
}
56

67
.example-full-width {

src/material-examples/input-form/input-form-example.css

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
.example-form {
2-
width: 500px;
3-
max-width: 100%;
2+
min-width: 150px;
3+
max-width: 500px;
4+
width: 100%;
45
}
56

67
.example-full-width {

src/material-examples/input-hint/input-hint-example.css

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
.example-form {
2-
width: 500px;
3-
max-width: 100%;
2+
min-width: 150px;
3+
max-width: 500px;
4+
width: 100%;
45
}
56

67
.example-full-width {
Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,9 @@
1-
/** No CSS for this example */
1+
.example-form {
2+
min-width: 150px;
3+
max-width: 500px;
4+
width: 100%;
5+
}
6+
7+
.example-full-width {
8+
width: 100%;
9+
}
Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1-
<md-input-container>
2-
<input mdInput placeholder="Favorite food" value="Sushi">
3-
</md-input-container>
1+
<form class="example-form">
2+
<md-input-container class="example-full-width">
3+
<input mdInput placeholder="Favorite food" value="Sushi">
4+
</md-input-container>
5+
</form>

src/material-examples/input-overview/input-overview-example.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import {Component} from '@angular/core';
55
*/
66
@Component({
77
selector: 'input-overview-example',
8+
styleUrls: ['input-overview-example.css'],
89
templateUrl: 'input-overview-example.html',
910
})
1011
export class InputOverviewExample {}

src/material-examples/input-prefix-suffix/input-prefix-suffix-example.css

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
.example-form {
2-
width: 500px;
3-
max-width: 100%;
2+
min-width: 150px;
3+
max-width: 500px;
4+
width: 100%;
45
}
56

67
.example-full-width {

0 commit comments

Comments
 (0)