Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

Merge remote-tracking branch 'upstream/dev' into feature-bulk-editor

Michael Shamoonf06e2c1089de
diff --cc src-ui/src/app/components/document-list/document-card-small/document-card-small.component.html
index 948d585f4,da0829349..3cb7e1740
--- a/src-ui/src/app/components/document-list/document-card-small/document-card-small.component.html
+++ b/src-ui/src/app/components/document-list/document-card-small/document-card-small.component.html
@@@ -1,16 -1,7 +1,16 @@@
- <div class="col p-2 h-100 document-card" style="width: 16rem;">
+ <div class="col p-2 h-100">
- <div class="card h-100 shadow-sm">
- <div class="border-bottom">
- <img class="card-img doc-img" [src]="getThumbUrl()">
+ <div class="card h-100 shadow-sm" [class.card-selected]="selected">
+ <div class="border-bottom" [class.doc-img-background-selected]="selected">
+ <img class="card-img doc-img" [src]="getThumbUrl()" (click)="selected = !selected">
+
+ <div class="border-right border-bottom bg-light p-1 rounded document-card-check">
+ <div class="custom-control custom-checkbox">
+ <input type="checkbox" class="custom-control-input" id="smallCardCheck{{document.id}}" [checked]="selected" (change)="selected = $event.target.checked">
+ <label class="custom-control-label" for="smallCardCheck{{document.id}}"></label>
+ </div>
+ </div>
+
+
<div style="top: 0; right: 0; font-size: large" class="text-right position-absolute mr-1">
<div *ngFor="let t of getTagsLimited$() | async">
<app-tag [tag]="t" (click)="clickTag.emit(t.id)" [clickable]="true" linkTitle="Filter by tag"></app-tag>
diff --cc src-ui/src/app/components/document-list/document-list.component.html
index 699f13840,9657f35e3..5ce4efd2a
--- a/src-ui/src/app/components/document-list/document-list.component.html
+++ b/src-ui/src/app/components/document-list/document-list.component.html
@@@ -150,6 -116,6 +150,6 @@@
</table>
-<div class="m-n2 row row-cols-paperless-cards" *ngIf="displayMode == 'smallCards'">
- <app-document-card-small [document]="d" *ngFor="let d of list.documents" (clickTag)="clickTag($event)" (clickCorrespondent)="clickCorrespondent($event)"></app-document-card-small>
+<div class=" m-n2 row" *ngIf="displayMode == 'smallCards'">
- <app-document-card-small [selected]="list.isSelected(d)" (selectedChange)="list.setSelected(d, $event)" [document]="d" *ngFor="let d of list.documents" (clickTag)="clickTag($event)" (clickCorrespondent)="clickCorrespondent($event)"></app-document-card-small>
++ <app-document-card-small [document]="d" [selected]="list.isSelected(d)" (selectedChange)="list.setSelected(d, $event)" *ngFor="let d of list.documents" (clickTag)="clickTag($event)" (clickCorrespondent)="clickCorrespondent($event)"></app-document-card-small>
</div>