mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-11-03 03:16:10 -06:00 
			
		
		
		
	Tweak checkbox
This commit is contained in:
		@@ -3,7 +3,7 @@
 | 
				
			|||||||
    <div class="border-bottom" [class.doc-img-background-selected]="selected">
 | 
					    <div class="border-bottom" [class.doc-img-background-selected]="selected">
 | 
				
			||||||
      <img class="card-img doc-img" [src]="getThumbUrl()" (click)="selected = !selected">
 | 
					      <img class="card-img doc-img" [src]="getThumbUrl()" (click)="selected = !selected">
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      <div style="top: 0; left: 0" class="position-absolute border-right border-bottom bg-light p-1" [class.document-card-check]="!selected">
 | 
					      <div class="border-right border-bottom bg-light p-1 rounded document-card-check">
 | 
				
			||||||
        <div class="custom-control custom-checkbox">
 | 
					        <div class="custom-control custom-checkbox">
 | 
				
			||||||
          <input type="checkbox" class="custom-control-input" id="smallCardCheck{{document.id}}" [checked]="selected" (change)="selected = $event.target.checked">
 | 
					          <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>
 | 
					          <label class="custom-control-label" for="smallCardCheck{{document.id}}"></label>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -8,7 +8,15 @@
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.document-card-check {
 | 
					.document-card-check {
 | 
				
			||||||
  display: none
 | 
					  display: none;
 | 
				
			||||||
 | 
					  position: absolute;
 | 
				
			||||||
 | 
					  top: 0;
 | 
				
			||||||
 | 
					  left: 0;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  .custom-control {
 | 
				
			||||||
 | 
					    margin-left: 4px;
 | 
				
			||||||
 | 
					    margin-right: -3px;
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.document-card:hover .document-card-check {
 | 
					.document-card:hover .document-card-check {
 | 
				
			||||||
@@ -17,6 +25,10 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
.card-selected {
 | 
					.card-selected {
 | 
				
			||||||
  border-color: $primary;
 | 
					  border-color: $primary;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  .document-card-check {
 | 
				
			||||||
 | 
					    display: block;
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.doc-img-background-selected {
 | 
					.doc-img-background-selected {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user