mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05: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,8 +25,12 @@ | |||||||
|  |  | ||||||
| .card-selected { | .card-selected { | ||||||
|   border-color: $primary; |   border-color: $primary; | ||||||
|  |  | ||||||
|  |   .document-card-check { | ||||||
|  |     display: block; | ||||||
|  |   } | ||||||
| } | } | ||||||
|  |  | ||||||
| .doc-img-background-selected { | .doc-img-background-selected { | ||||||
|   background-color: $primaryFaded; |   background-color: $primaryFaded; | ||||||
| } | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Michael Shamoon
					Michael Shamoon