mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05:00 
			
		
		
		
	Improve mobile filter editor layout with long languages
This commit is contained in:
		| @@ -1,10 +1,11 @@ | |||||||
| <app-page-header [title]="getTitle()"> | <app-page-header [title]="getTitle()"> | ||||||
|  |  | ||||||
|   <div ngbDropdown class="me-2 flex-fill d-flex"> |   <div ngbDropdown class="me-2 d-flex"> | ||||||
|     <button class="btn btn-sm btn-outline-primary flex-fill" id="dropdownSelect" ngbDropdownToggle> |     <button class="btn btn-sm btn-outline-primary" id="dropdownSelect" ngbDropdownToggle> | ||||||
|       <svg class="toolbaricon" fill="currentColor"> |       <svg class="toolbaricon" fill="currentColor"> | ||||||
|         <use xlink:href="assets/bootstrap-icons.svg#text-indent-left" /> |         <use xlink:href="assets/bootstrap-icons.svg#text-indent-left" /> | ||||||
|       </svg> <ng-container i18n>Select</ng-container> |       </svg> | ||||||
|  |       <div class="d-none d-sm-inline"> <ng-container i18n>Select</ng-container></div> | ||||||
|     </button> |     </button> | ||||||
|     <div ngbDropdownMenu aria-labelledby="dropdownSelect" class="shadow"> |     <div ngbDropdownMenu aria-labelledby="dropdownSelect" class="shadow"> | ||||||
|       <button ngbDropdownItem (click)="list.selectNone()" i18n>Select none</button> |       <button ngbDropdownItem (click)="list.selectNone()" i18n>Select none</button> | ||||||
| @@ -75,7 +76,7 @@ | |||||||
|  |  | ||||||
| </app-page-header> | </app-page-header> | ||||||
|  |  | ||||||
| <div class="row sticky-top pt-4 pb-2 pb-lg-4 bg-body"> | <div class="row sticky-top pt-3 pt-sm-4 pb-2 pb-lg-4 bg-body"> | ||||||
|   <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> | ||||||
|   | |||||||
| @@ -13,9 +13,9 @@ | |||||||
|      </div> |      </div> | ||||||
|   </div> |   </div> | ||||||
|   <div class="w-100 d-xl-none"></div> |   <div class="w-100 d-xl-none"></div> | ||||||
|     <div class="col col-xl-auto mb-2 mb-xl-0"> |     <div class="col col-xl-auto"> | ||||||
|       <div class="d-flex"> |       <div class="d-flex flex-wrap"> | ||||||
|         <app-filterable-dropdown class="me-2 flex-fill" title="Tags" icon="tag-fill" i18n-title |         <app-filterable-dropdown class="flex-fill" title="Tags" icon="tag-fill" i18n-title | ||||||
|           filterPlaceholder="Filter tags" i18n-filterPlaceholder |           filterPlaceholder="Filter tags" i18n-filterPlaceholder | ||||||
|           [items]="tags" |           [items]="tags" | ||||||
|           [(selectionModel)]="tagSelectionModel" |           [(selectionModel)]="tagSelectionModel" | ||||||
| @@ -23,26 +23,26 @@ | |||||||
|           [multiple]="true" |           [multiple]="true" | ||||||
|           (open)="onTagsDropdownOpen()" |           (open)="onTagsDropdownOpen()" | ||||||
|           [allowSelectNone]="true"></app-filterable-dropdown> |           [allowSelectNone]="true"></app-filterable-dropdown> | ||||||
|         <app-filterable-dropdown class="me-2 flex-fill" title="Correspondent" icon="person-fill" i18n-title |         <app-filterable-dropdown class="flex-fill" title="Correspondent" icon="person-fill" i18n-title | ||||||
|           filterPlaceholder="Filter correspondents" i18n-filterPlaceholder |           filterPlaceholder="Filter correspondents" i18n-filterPlaceholder | ||||||
|           [items]="correspondents" |           [items]="correspondents" | ||||||
|           [(selectionModel)]="correspondentSelectionModel" |           [(selectionModel)]="correspondentSelectionModel" | ||||||
|           (selectionModelChange)="updateRules()" |           (selectionModelChange)="updateRules()" | ||||||
|           (open)="onCorrespondentDropdownOpen()" |           (open)="onCorrespondentDropdownOpen()" | ||||||
|           [allowSelectNone]="true"></app-filterable-dropdown> |           [allowSelectNone]="true"></app-filterable-dropdown> | ||||||
|         <app-filterable-dropdown class="me-2 flex-fill" title="Document type" icon="file-earmark-fill" i18n-title |         <app-filterable-dropdown class="flex-fill" title="Document type" icon="file-earmark-fill" i18n-title | ||||||
|           filterPlaceholder="Filter document types" i18n-filterPlaceholder |           filterPlaceholder="Filter document types" i18n-filterPlaceholder | ||||||
|           [items]="documentTypes" |           [items]="documentTypes" | ||||||
|           [(selectionModel)]="documentTypeSelectionModel" |           [(selectionModel)]="documentTypeSelectionModel" | ||||||
|           (open)="onDocumentTypeDropdownOpen()" |           (open)="onDocumentTypeDropdownOpen()" | ||||||
|           (selectionModelChange)="updateRules()" |           (selectionModelChange)="updateRules()" | ||||||
|           [allowSelectNone]="true"></app-filterable-dropdown> |           [allowSelectNone]="true"></app-filterable-dropdown> | ||||||
|         <app-date-dropdown class="me-2" |         <app-date-dropdown class="mb-2 mb-xl-0" | ||||||
|           title="Created" i18n-title |           title="Created" i18n-title | ||||||
|           (datesSet)="updateRules()" |           (datesSet)="updateRules()" | ||||||
|           [(dateBefore)]="dateCreatedBefore" |           [(dateBefore)]="dateCreatedBefore" | ||||||
|           [(dateAfter)]="dateCreatedAfter"></app-date-dropdown> |           [(dateAfter)]="dateCreatedAfter"></app-date-dropdown> | ||||||
|         <app-date-dropdown |         <app-date-dropdown class="mb-2 mb-xl-0" | ||||||
|           [(dateBefore)]="dateAddedBefore" |           [(dateBefore)]="dateAddedBefore" | ||||||
|           [(dateAfter)]="dateAddedAfter" |           [(dateAfter)]="dateAddedAfter" | ||||||
|           title="Added" i18n-title |           title="Added" i18n-title | ||||||
|   | |||||||
| @@ -14,6 +14,6 @@ | |||||||
|   border-bottom-right-radius: 0; |   border-bottom-right-radius: 0; | ||||||
| } | } | ||||||
|  |  | ||||||
| .me-2 { | .d-flex.flex-wrap { | ||||||
|   margin-right: 0.7rem !important; // tweak to make room for badges |   column-gap: 0.7rem; | ||||||
| } | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Michael Shamoon
					Michael Shamoon