Tweak dropdown formatting

This commit is contained in:
RunasSudo 2021-07-21 00:44:22 +10:00
parent 11496a133c
commit a97ee591e5
No known key found for this signature in database
GPG Key ID: 7234E476BF21C61A
1 changed files with 8 additions and 2 deletions

View File

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