Skip to content

Commit

Permalink
fix(input-container): prefix and suffix stretching together with pare…
Browse files Browse the repository at this point in the history
…nt (#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.
  • Loading branch information
crisbeto authored and tinayuangao committed Jan 12, 2017
1 parent e5bd15c commit 64f6d1b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/lib/input/input-container.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit 64f6d1b

Please sign in to comment.