From 3bf40b154c1e38c879c40795f24a0d2221e1dbf1 Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Mon, 9 Sep 2024 12:18:00 -0700 Subject: [PATCH] Better doc link value layout --- ...ustom-fields-query-dropdown.component.html | 2 +- ...ustom-fields-query-dropdown.component.scss | 8 ++- .../document-link.component.html | 60 +++++++++---------- .../document-link/document-link.component.ts | 3 + 4 files changed, 39 insertions(+), 34 deletions(-) diff --git a/src-ui/src/app/components/common/custom-fields-query-dropdown/custom-fields-query-dropdown.component.html b/src-ui/src/app/components/common/custom-fields-query-dropdown/custom-fields-query-dropdown.component.html index 578955d96..4fd2241f8 100644 --- a/src-ui/src/app/components/common/custom-fields-query-dropdown/custom-fields-query-dropdown.component.html +++ b/src-ui/src/app/components/common/custom-fields-query-dropdown/custom-fields-query-dropdown.component.html @@ -79,7 +79,7 @@ } @case (CustomFieldQueryOperator.Contains) { - + } @default { diff --git a/src-ui/src/app/components/common/custom-fields-query-dropdown/custom-fields-query-dropdown.component.scss b/src-ui/src/app/components/common/custom-fields-query-dropdown/custom-fields-query-dropdown.component.scss index 3995ffc5e..8c2fd9f73 100644 --- a/src-ui/src/app/components/common/custom-fields-query-dropdown/custom-fields-query-dropdown.component.scss +++ b/src-ui/src/app/components/common/custom-fields-query-dropdown/custom-fields-query-dropdown.component.scss @@ -8,6 +8,7 @@ ::ng-deep .ng-select-container { border-top-right-radius: 0 !important; border-bottom-right-radius: 0 !important; + height: 100% !important; } ::ng-deep .ng-select { @@ -20,10 +21,13 @@ padding-top: 0 !important; border-top-right-radius: var(--bs-border-radius) !important; border-bottom-right-radius: var(--bs-border-radius) !important; + background-image: none !important; - .ng-select-container { + .ng-select-container, + .ng-select.ng-select-opened > .ng-select-container { border: none !important; - min-height: auto !important; + min-height: 34px !important; + background: none !important; } .ng-select { max-width: 200px; diff --git a/src-ui/src/app/components/common/input/document-link/document-link.component.html b/src-ui/src/app/components/common/input/document-link/document-link.component.html index 94b6033b4..24dcfdca9 100644 --- a/src-ui/src/app/components/common/input/document-link/document-link.component.html +++ b/src-ui/src/app/components/common/input/document-link/document-link.component.html @@ -24,35 +24,33 @@ } - + + + + + +
+
Loading...
+
+ +
{{document.title}} ({{document.created | customDate:'shortDate'}})
+
+
diff --git a/src-ui/src/app/components/common/input/document-link/document-link.component.ts b/src-ui/src/app/components/common/input/document-link/document-link.component.ts index 0e06da34b..882aacad5 100644 --- a/src-ui/src/app/components/common/input/document-link/document-link.component.ts +++ b/src-ui/src/app/components/common/input/document-link/document-link.component.ts @@ -49,6 +49,9 @@ export class DocumentLinkComponent @Input() minimal: boolean = false + @Input() + placeholder: string = $localize`Search for documents` + constructor(private documentsService: DocumentService) { super() }