Repository navigation
fix(input-container): prefix and suffix stretching together with parent - #2496
Conversation
|
|
||
| // Prevents the prefix and suffix from stretching together with the container. | ||
| .md-input-prefix, .md-input-suffix { | ||
| width: 0.1px; |
There was a problem hiding this comment.
It kind of acts as a max-width, otherwise the table cells stretch out.
There was a problem hiding this comment.
I see, is there a reason we have to use table as opposed to flex? I had started a PR to convert it to flex at some point, but I don't know what happened to it...
There was a problem hiding this comment.
Not sure, IIRC @hansl implemented it like this initially, but I don't know what the reasoning was.
There was a problem hiding this comment.
Ok, Jeremy's comment on #2581 explains why we're avoiding flex here.
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 angular#2493. Fixes angular#1881. Fixes angular#1421.
3f1aa20 to
c9de8fd
Compare
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
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.