Fix select dropdown pixel alignment

This commit is contained in:
shamoon 2024-04-14 08:55:07 -07:00
parent 4fa2b54aed
commit 1bbcd0961b
2 changed files with 10 additions and 9 deletions

View File

@ -9,16 +9,12 @@
} }
} }
::ng-deep .ng-select .ng-select-container .ng-value-container .ng-placeholder, ::ng-deep .custom-fields-dropdown .ng-select .ng-select-container .ng-value-container .ng-placeholder,
::ng-deep .ng-select .ng-option, ::ng-deep .custom-fields-dropdown .ng-select .ng-option,
::ng-deep .ng-select .ng-select-container .ng-value-container .ng-value { ::ng-deep .custom-fields-dropdown .ng-select .ng-select-container .ng-value-container .ng-value {
font-size: 0.875rem; font-size: 0.875rem;
} }
::ng-deep .paperless-input-select .ng-select { ::ng-deep .custom-fields-dropdown .paperless-input-select .ng-select .ng-select-container .ng-value-container .ng-input {
min-height: calc(1em + 0.75rem + 5px);
}
::ng-deep .paperless-input-select .ng-select .ng-select-container .ng-value-container .ng-input {
top: 4px; top: 4px;
} }

View File

@ -250,7 +250,7 @@ a.btn-link:focus-visible,
position: relative; position: relative;
flex: 1 1 auto; flex: 1 1 auto;
margin-bottom: 0; margin-bottom: 0;
min-height: calc(1.5em + 0.75rem + 5px); min-height: calc(1em + 0.75rem + 5px);
line-height: 1.5; line-height: 1.5;
.ng-select-container { .ng-select-container {
@ -271,6 +271,11 @@ a.btn-link:focus-visible,
font-weight: bold; font-weight: bold;
background-color: var(--pngx-bg-alt2) !important; background-color: var(--pngx-bg-alt2) !important;
} }
&.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder,
.ng-select-container .ng-value-container .ng-placeholder {
top: 7px;
}
} }
.input-group { .input-group {