mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-28 03:46:06 -05:00 
			
		
		
		
	Merge pull request #933 from paperless-ngx/1.7.1-frontend-css-tweaks
Fix: v1.7.1 frontend visual fixes
This commit is contained in:
		| @@ -30,7 +30,7 @@ | |||||||
|  |  | ||||||
|     <button type="button" class="btn btn-sm btn-outline-primary me-2" (click)="moreLike()"> |     <button type="button" class="btn btn-sm btn-outline-primary me-2" (click)="moreLike()"> | ||||||
|         <svg class="buttonicon" fill="currentColor"> |         <svg class="buttonicon" fill="currentColor"> | ||||||
|             <use xlink:href="assets/bootstrap-icons.svg#three-dots" /> |             <use xlink:href="assets/bootstrap-icons.svg#diagram-3" /> | ||||||
|         </svg> <span class="d-none d-lg-inline" i18n>More like this</span> |         </svg> <span class="d-none d-lg-inline" i18n>More like this</span> | ||||||
|     </button> |     </button> | ||||||
|  |  | ||||||
|   | |||||||
| @@ -33,31 +33,29 @@ | |||||||
|         <div class="d-flex flex-column flex-md-row align-items-md-center"> |         <div class="d-flex flex-column flex-md-row align-items-md-center"> | ||||||
|           <div class="btn-group"> |           <div class="btn-group"> | ||||||
|             <a class="btn btn-sm btn-outline-secondary" (click)="clickMoreLike.emit()"> |             <a class="btn btn-sm btn-outline-secondary" (click)="clickMoreLike.emit()"> | ||||||
|               <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-three-dots" viewBox="0 0 16 16"> |               <svg class="sidebaricon" fill="currentColor" class="sidebaricon"> | ||||||
|                 <path fill-rule="evenodd" d="M3 9.5a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm5 0a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm5 0a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3z"/> |                 <use xlink:href="assets/bootstrap-icons.svg#diagram-3"/> | ||||||
|               </svg> <span class="d-block d-md-inline" i18n>More like this</span> |               </svg> <span class="d-none d-md-inline" i18n>More like this</span> | ||||||
|             </a> |             </a> | ||||||
|             <a routerLink="/documents/{{document.id}}" class="btn btn-sm btn-outline-secondary"> |             <a routerLink="/documents/{{document.id}}" class="btn btn-sm btn-outline-secondary"> | ||||||
|               <svg width="1em" height="1em" viewBox="0 0 16 16" class="bi bi-pencil" fill="currentColor" xmlns="http://www.w3.org/2000/svg"> |               <svg class="sidebaricon" fill="currentColor" class="sidebaricon"> | ||||||
|                 <path fill-rule="evenodd" d="M12.146.146a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1 0 .708l-10 10a.5.5 0 0 1-.168.11l-5 2a.5.5 0 0 1-.65-.65l2-5a.5.5 0 0 1 .11-.168l10-10zM11.207 2.5L13.5 4.793 14.793 3.5 12.5 1.207 11.207 2.5zm1.586 3L10.5 3.207 4 9.707V10h.5a.5.5 0 0 1 .5.5v.5h.5a.5.5 0 0 1 .5.5v.5h.293l6.5-6.5zm-9.761 5.175l-.106.106-1.528 3.821 3.821-1.528.106-.106A.5.5 0 0 1 5 12.5V12h-.5a.5.5 0 0 1-.5-.5V11h-.5a.5.5 0 0 1-.468-.325z"/> |                 <use xlink:href="assets/bootstrap-icons.svg#pencil"/> | ||||||
|               </svg> <span class="d-block d-md-inline" i18n>Edit</span> |               </svg> <span class="d-none d-md-inline" i18n>Edit</span> | ||||||
|             </a> |             </a> | ||||||
|             <a class="btn btn-sm btn-outline-secondary" target="_blank" [href]="previewUrl" |             <a class="btn btn-sm btn-outline-secondary" target="_blank" [href]="previewUrl" | ||||||
|             [ngbPopover]="previewContent" [popoverTitle]="document.title | documentTitle" |             [ngbPopover]="previewContent" [popoverTitle]="document.title | documentTitle" | ||||||
|             autoClose="true" popoverClass="shadow" (mouseenter)="mouseEnterPreview()" (mouseleave)="mouseLeavePreview()" #popover="ngbPopover"> |             autoClose="true" popoverClass="shadow" (mouseenter)="mouseEnterPreview()" (mouseleave)="mouseLeavePreview()" #popover="ngbPopover"> | ||||||
|               <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-eye" viewBox="0 0 16 16"> |               <svg class="sidebaricon" fill="currentColor" class="sidebaricon"> | ||||||
|                 <path d="M16 8s-3-5.5-8-5.5S0 8 0 8s3 5.5 8 5.5S16 8 16 8zM1.173 8a13.133 13.133 0 0 1 1.66-2.043C4.12 4.668 5.88 3.5 8 3.5c2.12 0 3.879 1.168 5.168 2.457A13.133 13.133 0 0 1 14.828 8c-.058.087-.122.183-.195.288-.335.48-.83 1.12-1.465 1.755C11.879 11.332 10.119 12.5 8 12.5c-2.12 0-3.879-1.168-5.168-2.457A13.134 13.134 0 0 1 1.172 8z"/> |                 <use xlink:href="assets/bootstrap-icons.svg#eye"/> | ||||||
|                 <path d="M8 5.5a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5zM4.5 8a3.5 3.5 0 1 1 7 0 3.5 3.5 0 0 1-7 0z"/> |               </svg> <span class="d-none d-md-inline" i18n>View</span> | ||||||
|               </svg> <span class="d-block d-md-inline" i18n>View</span> |  | ||||||
|             </a> |             </a> | ||||||
|             <ng-template #previewContent> |             <ng-template #previewContent> | ||||||
|               <object [data]="previewUrl | safeUrl" class="preview" width="100%"></object> |               <object [data]="previewUrl | safeUrl" class="preview" width="100%"></object> | ||||||
|             </ng-template> |             </ng-template> | ||||||
|             <a class="btn btn-sm btn-outline-secondary" [href]="getDownloadUrl()"> |             <a class="btn btn-sm btn-outline-secondary" [href]="getDownloadUrl()"> | ||||||
|               <svg width="1em" height="1em" viewBox="0 0 16 16" class="bi bi-download" fill="currentColor" xmlns="http://www.w3.org/2000/svg"> |               <svg class="sidebaricon" fill="currentColor" class="sidebaricon"> | ||||||
|                 <path fill-rule="evenodd" d="M.5 9.9a.5.5 0 0 1 .5.5v2.5a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-2.5a.5.5 0 0 1 1 0v2.5a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2v-2.5a.5.5 0 0 1 .5-.5z"/> |                 <use xlink:href="assets/bootstrap-icons.svg#download"/> | ||||||
|                 <path fill-rule="evenodd" d="M7.646 11.854a.5.5 0 0 0 .708 0l3-3a.5.5 0 0 0-.708-.708L8.5 10.293V1.5a.5.5 0 0 0-1 0v8.793L5.354 8.146a.5.5 0 1 0-.708.708l3 3z"/> |               </svg> <span class="d-none d-md-inline" i18n>Download</span> | ||||||
|               </svg> <span class="d-block d-md-inline" i18n>Download</span> |  | ||||||
|             </a> |             </a> | ||||||
|           </div> |           </div> | ||||||
|  |  | ||||||
|   | |||||||
| @@ -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> | ||||||
|   | |||||||
| @@ -16,9 +16,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" | ||||||
| @@ -26,26 +26,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; | ||||||
| } | } | ||||||
|   | |||||||
| @@ -208,6 +208,11 @@ a, a:hover, .btn-link, .btn-link:hover { | |||||||
|       } |       } | ||||||
|     } |     } | ||||||
|  |  | ||||||
|  |     .ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-marked { | ||||||
|  |       background-color: var(--pngx-bg-darker) !important; | ||||||
|  |       color: var(--pngx-body-color-accent) !important; | ||||||
|  |     } | ||||||
|  |  | ||||||
|     .ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-selected, |     .ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-selected, | ||||||
|     .ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-selected.ng-option-marked { |     .ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-selected.ng-option-marked { | ||||||
|       background: none; |       background: none; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Quinn Casey
					Quinn Casey