From 659cd3e9d5362d20b44c0f9112aec2e0a5fd7dfe Mon Sep 17 00:00:00 2001 From: jonaswinkler Date: Thu, 17 Dec 2020 23:41:46 +0100 Subject: [PATCH] hide search controls on document list --- .../document-card-large/document-card-large.component.html | 4 ++-- .../document-card-large/document-card-large.component.scss | 6 ++++++ .../document-card-large/document-card-large.component.ts | 3 +++ src-ui/src/app/components/search/search.component.html | 3 ++- 4 files changed, 13 insertions(+), 3 deletions(-) diff --git a/src-ui/src/app/components/document-list/document-card-large/document-card-large.component.html b/src-ui/src/app/components/document-list/document-card-large/document-card-large.component.html index 32abaaef1..58c0f6241 100644 --- a/src-ui/src/app/components/document-list/document-card-large/document-card-large.component.html +++ b/src-ui/src/app/components/document-list/document-card-large/document-card-large.component.html @@ -25,7 +25,7 @@
diff --git a/src-ui/src/app/components/document-list/document-card-large/document-card-large.component.scss b/src-ui/src/app/components/document-list/document-card-large/document-card-large.component.scss index 11fb10562..438d2c768 100644 --- a/src-ui/src/app/components/document-list/document-card-large/document-card-large.component.scss +++ b/src-ui/src/app/components/document-list/document-card-large/document-card-large.component.scss @@ -9,4 +9,10 @@ height: 100%; position: absolute; +} + +.search-score-bar { + width: 100px; + height: 5px; + margin: 10px; } \ No newline at end of file diff --git a/src-ui/src/app/components/document-list/document-card-large/document-card-large.component.ts b/src-ui/src/app/components/document-list/document-card-large/document-card-large.component.ts index 44f9cb906..bcc1b1f3c 100644 --- a/src-ui/src/app/components/document-list/document-card-large/document-card-large.component.ts +++ b/src-ui/src/app/components/document-list/document-card-large/document-card-large.component.ts @@ -12,6 +12,9 @@ export class DocumentCardLargeComponent implements OnInit { constructor(private documentService: DocumentService, private sanitizer: DomSanitizer) { } + @Input() + moreLikeThis: boolean = false + @Input() document: PaperlessDocument diff --git a/src-ui/src/app/components/search/search.component.html b/src-ui/src/app/components/search/search.component.html index 609bea9e5..de6f0133f 100644 --- a/src-ui/src/app/components/search/search.component.html +++ b/src-ui/src/app/components/search/search.component.html @@ -21,7 +21,8 @@ + [searchScore]="result.score / maxScore" + [moreLikeThis]="true">