bs5: document list table checkboxes

This commit is contained in:
Michael Shamoon 2022-02-19 23:05:41 -08:00
parent 99409f258f
commit efe5df3459
2 changed files with 14 additions and 4 deletions

View File

@ -106,7 +106,7 @@
</app-document-card-large>
</div>
<table class="table table-sm border shadow-sm" *ngIf="displayMode == 'details'">
<table class="table table-sm align-middle border shadow-sm" *ngIf="displayMode == 'details'">
<thead>
<th></th>
<th class="d-none d-lg-table-cell"
@ -149,9 +149,9 @@
<tbody>
<tr *ngFor="let d of list.documents; trackBy: trackByDocumentId" (click)="toggleSelected(d, $event)" [ngClass]="list.isSelected(d) ? 'table-row-selected' : ''">
<td>
<div class="custom-control custom-checkbox">
<input type="checkbox" class="custom-control-input" id="docCheck{{d.id}}" [checked]="list.isSelected(d)" (click)="toggleSelected(d, $event)">
<label class="custom-control-label" for="docCheck{{d.id}}"></label>
<div class="form-check">
<input type="checkbox" class="form-check-input" id="docCheck{{d.id}}" [checked]="list.isSelected(d)" (click)="toggleSelected(d, $event)">
<label class="form-check-label" for="docCheck{{d.id}}"></label>
</div>
</td>
<td class="d-none d-lg-table-cell">

View File

@ -44,3 +44,13 @@ $paperless-card-breakpoints: (
top: 3.5rem; // height of navbar
}
}
.table .form-check {
padding: 0.2rem;
min-height: 0;
margin-bottom: 0;
.form-check-input {
margin-left: 0;
}
}