]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
Fix select dropdown pixel alignment
authorshamoon <4887959+shamoon@users.noreply.github.com>
Sun, 14 Apr 2024 15:55:07 +0000 (08:55 -0700)
committershamoon <4887959+shamoon@users.noreply.github.com>
Sun, 14 Apr 2024 15:55:07 +0000 (08:55 -0700)
src-ui/src/app/components/common/custom-fields-dropdown/custom-fields-dropdown.component.scss
src-ui/src/styles.scss

index d91823a4fee0d016a9fc0ddf1f86dbd82ca50ec1..f9b9290edf1f49b1a5d3b4c090003dddce8802a8 100644 (file)
@@ -9,16 +9,12 @@
     }
 }
 
-::ng-deep .ng-select .ng-select-container .ng-value-container .ng-placeholder,
-::ng-deep .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-placeholder,
+::ng-deep .custom-fields-dropdown .ng-select .ng-option,
+::ng-deep .custom-fields-dropdown .ng-select .ng-select-container .ng-value-container .ng-value {
     font-size: 0.875rem;
 }
 
-::ng-deep .paperless-input-select .ng-select {
-    min-height: calc(1em + 0.75rem + 5px);
-}
-
-::ng-deep .paperless-input-select .ng-select .ng-select-container .ng-value-container .ng-input {
+::ng-deep .custom-fields-dropdown .paperless-input-select .ng-select .ng-select-container .ng-value-container .ng-input {
     top: 4px;
 }
index 967b416adf091e681d690a6402fc56802a23b8f4..22e4b348b197944afe506f4670f087fde92c1edd 100644 (file)
@@ -250,7 +250,7 @@ a.btn-link:focus-visible,
     position: relative;
     flex: 1 1 auto;
     margin-bottom: 0;
-    min-height: calc(1.5em + 0.75rem + 5px);
+    min-height: calc(1em + 0.75rem + 5px);
     line-height: 1.5;
 
     .ng-select-container {
@@ -271,6 +271,11 @@ a.btn-link:focus-visible,
       font-weight: bold;
       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 {