Skip to content

Commit

Permalink
Merge pull request #6244 from spantaleev/gracefully-degrading-dropdowns
Browse files Browse the repository at this point in the history
Make dropdowns with long options degrade more gracefully
  • Loading branch information
ara4n authored Feb 26, 2018
2 parents 514338e + 985dd44 commit aeb423c
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,12 @@ limitations under the License.
left: 10px;
}

.mx_Dropdown_input > .mx_Dropdown_option {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}

.mx_Dropdown.left_aligned .mx_Dropdown_input > .mx_Dropdown_option {
padding-left: 25px;
}
Expand Down Expand Up @@ -104,6 +110,11 @@ input.mx_Dropdown_option, input.mx_Dropdown_option:focus {
overflow-y: auto;
}

.mx_Dropdown_menu .mx_Dropdown_option {
height: auto;
min-height: 35px;
}

.mx_Dropdown_menu .mx_Dropdown_option_highlight {
background-color: $focus-bg-color;
}
Expand Down

0 comments on commit aeb423c

Please sign in to comment.