Skip to content
This repository has been archived by the owner on Sep 5, 2024. 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

Closes #6200
  • Loading branch information
David Meza committed Mar 11, 2016
1 parent d2b02c8 commit 91109b7
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/components/select/select.scss
Original file line number Diff line number Diff line change
Expand Up @@ -104,16 +104,18 @@ md-select {
min-height: 26px;
flex-grow: 1;

._md-text {
display: inline;
}

*:first-child {
> span:not(._md-select-icon) {
max-width: 100%;
flex: 1 0 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 91109b7

Please sign in to comment.