Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

Commit

Permalink
fix(select): fix layout issue
Browse files Browse the repository at this point in the history
- Make selector less agressive restricting it to the text span only
- Add a max width, so the overflow rule will go in effect if we reach the width of the container
- Allow span to shrink if width is greather than that of the input container

Closes #6200 and #6312

Closes #7509
  • Loading branch information
David Meza authored and ThomasBurleson committed Mar 14, 2016
1 parent b8c2d51 commit dfa0a0c
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/components/select/select.scss
Expand Up @@ -104,16 +104,18 @@ md-select {
min-height: 26px;
flex-grow: 1;

._md-text {
display: inline;
}

*:first-child {
flex: 1 0 auto;
> span:not(._md-select-icon) {
max-width: 100%;
flex: 1 1 auto;
transform: translate3d(0, 2px, 0);
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
transform: translate3d(0, 2px, 0);

._md-text {
display: inline;
}
}

._md-select-icon {
Expand Down

0 comments on commit dfa0a0c

Please sign in to comment.