Display name suggestion presets on 2 lines

(closes #5514)
This commit is contained in:
Bryan Housel
2018-11-26 21:55:13 -05:00
parent b719a45e1e
commit 822917466c
3 changed files with 54 additions and 12 deletions
+19 -5
View File
@@ -1092,6 +1092,9 @@ a.hide-toggle {
}
.preset-list-button .label {
display: flex;
flex-flow: row wrap;
align-items: center;
background-color: #f6f6f6;
text-align: left;
position: absolute;
@@ -1100,10 +1103,6 @@ a.hide-toggle {
right: 0;
padding: 5px 10px;
left: 60px;
line-height: 50px;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
border-left: 1px solid rgba(0, 0, 0, .1);
border-radius: 0 3px 3px 0;
}
@@ -1116,6 +1115,21 @@ a.hide-toggle {
border-radius: 3px 0 0 3px;
}
.preset-list-button .label-inner {
width: 100%;
}
.preset-list-button .label-inner .namepart {
height: 17px;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
padding-right: 30px;
}
[dir='rtl'] .preset-list-button .label-inner .namepart {
padding-right: 0;
padding-left: 30px;
}
.preset-list-button:hover .label,
.preset-list-button:focus .label {
background-color: #ececec;
@@ -1146,7 +1160,7 @@ a.hide-toggle {
.current .preset-list-button,
.current .preset-list-button .label {
background-color: #E8EBFF;
background-color: #e8ebff;
}
.category .preset-list-button:after,