mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
fix(input-container): prefix and suffix stretching together with parent (#2496)
Prevents the input's suffix and prefix from stretching together with their parent node and leaving some weird spacing between themselves and the input. This was a side-effect of using `display: table-cell`. Fixes #2493. Fixes #1881. Fixes #1421.
This commit is contained in:
committed by
tinayuangao
parent
e5bd15cc6b
commit
64f6d1bfe3
@@ -39,3 +39,9 @@ md-input-container {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Prevents the prefix and suffix from stretching together with the container.
|
||||
.md-input-prefix, .md-input-suffix {
|
||||
width: 0.1px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user