mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-11-03 03:16:10 -06:00 
			
		
		
		
	Merge pull request #918 from shamoon/fix/issue-907
"Sticky" filter editor and bulk editor
This commit is contained in:
		@@ -75,7 +75,7 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
</app-page-header>
 | 
					</app-page-header>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<div class="w-100 mb-2 mb-sm-4">
 | 
					<div class="sticky-top py-2 mt-n2 mt-sm-n3 py-sm-4 bg-body mx-n3 px-3">
 | 
				
			||||||
  <app-filter-editor [hidden]="isBulkEditing" [(filterRules)]="list.filterRules" [unmodifiedFilterRules]="unmodifiedFilterRules" #filterEditor></app-filter-editor>
 | 
					  <app-filter-editor [hidden]="isBulkEditing" [(filterRules)]="list.filterRules" [unmodifiedFilterRules]="unmodifiedFilterRules" #filterEditor></app-filter-editor>
 | 
				
			||||||
  <app-bulk-editor [hidden]="!isBulkEditing"></app-bulk-editor>
 | 
					  <app-bulk-editor [hidden]="!isBulkEditing"></app-bulk-editor>
 | 
				
			||||||
</div>
 | 
					</div>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -34,3 +34,12 @@ $paperless-card-breakpoints: (
 | 
				
			|||||||
  right: 0 !important;
 | 
					  right: 0 !important;
 | 
				
			||||||
  left: auto !important;
 | 
					  left: auto !important;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					.sticky-top {
 | 
				
			||||||
 | 
					  z-index: 1000; // below main navbar
 | 
				
			||||||
 | 
					  top: calc(7rem - 2px); // height of navbar (mobile)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  @media (min-width: 580px) {
 | 
				
			||||||
 | 
					    top: 3.5rem; // height of navbar
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -5,3 +5,7 @@ $primaryFaded: #d1ddd2;
 | 
				
			|||||||
$theme-colors: (
 | 
					$theme-colors: (
 | 
				
			||||||
  "primary": $primary
 | 
					  "primary": $primary
 | 
				
			||||||
);
 | 
					);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					.bg-body {
 | 
				
			||||||
 | 
					  background-color: #fff;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -37,6 +37,10 @@ $border-color-dark-mode: #47494f;
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  .bg-body {
 | 
				
			||||||
 | 
					    background-color: $bg-dark-mode !important;
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  .text-light {
 | 
					  .text-light {
 | 
				
			||||||
    color: $text-color-dark-mode !important;
 | 
					    color: $text-color-dark-mode !important;
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user