Tweak dropdown formatting

This commit is contained in:
RunasSudo 2021-07-21 00:44:22 +10:00
parent 11496a133c
commit a97ee591e5
Signed by: RunasSudo
GPG Key ID: 7234E476BF21C61A
1 changed files with 8 additions and 2 deletions

View File

@ -295,6 +295,9 @@ label {
.js-Dropdown-title {
width: 100%;
text-align: left;
position: relative;
z-index: 999;
padding: 2px 6px; /* Needs additional padding to match <select> */
}
.js-Dropdown-list {
background: #fff;
@ -304,11 +307,11 @@ label {
box-sizing: border-box;
display: none;
list-style: none;
margin: -2px 0 0 0;
margin: -5px 0 0 0;
padding: 0;
position: absolute;
min-width: 100%;
z-index: 999;
z-index: 998;
max-height: 80vh;
overflow-y: auto;
}
@ -331,3 +334,6 @@ label {
padding: 2px 3px;
line-height: 1.3;
}
.js-Dropdown-optgroup:first-child {
padding-top: 4px;
}