mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05:00 
			
		
		
		
	Merge branch 'v2.0-visual-fixes' into dev
This commit is contained in:
		| @@ -12,7 +12,6 @@ | |||||||
|         </button> |         </button> | ||||||
|     </h4> |     </h4> | ||||||
|     <ul class="list-group"> |     <ul class="list-group"> | ||||||
|  |  | ||||||
|         <li class="list-group-item"> |         <li class="list-group-item"> | ||||||
|         <div class="row"> |         <div class="row"> | ||||||
|             <div class="col" i18n>Username</div> |             <div class="col" i18n>Username</div> | ||||||
| @@ -57,7 +56,6 @@ | |||||||
|         </button> |         </button> | ||||||
|     </h4> |     </h4> | ||||||
|     <ul *ngIf="groups.length > 0" class="list-group"> |     <ul *ngIf="groups.length > 0" class="list-group"> | ||||||
|  |  | ||||||
|         <li class="list-group-item"> |         <li class="list-group-item"> | ||||||
|         <div class="row"> |         <div class="row"> | ||||||
|             <div class="col" i18n>Name</div> |             <div class="col" i18n>Name</div> | ||||||
|   | |||||||
| @@ -62,7 +62,7 @@ | |||||||
|  |  | ||||||
| <div class="container-fluid"> | <div class="container-fluid"> | ||||||
|   <div class="row"> |   <div class="row"> | ||||||
|     <nav id="sidebarMenu" class="d-md-block bg-light sidebar collapse" [ngClass]="slimSidebarEnabled ? 'slim' : 'col-md-3 col-lg-2'" [class.animating]="slimSidebarAnimating" [ngbCollapse]="isMenuCollapsed"> |     <nav id="sidebarMenu" class="d-md-block bg-light sidebar collapse" [ngClass]="slimSidebarEnabled ? 'slim' : 'col-md-3 col-lg-2 col-xxxl-1'" [class.animating]="slimSidebarAnimating" [ngbCollapse]="isMenuCollapsed"> | ||||||
|       <button class="btn btn-sm btn-dark sidebar-slim-toggler" (click)="toggleSlimSidebar()"> |       <button class="btn btn-sm btn-dark sidebar-slim-toggler" (click)="toggleSlimSidebar()"> | ||||||
|         <svg class="sidebaricon-sm" fill="currentColor"> |         <svg class="sidebaricon-sm" fill="currentColor"> | ||||||
|           <use *ngIf="slimSidebarEnabled" xlink:href="assets/bootstrap-icons.svg#chevron-double-right"/> |           <use *ngIf="slimSidebarEnabled" xlink:href="assets/bootstrap-icons.svg#chevron-double-right"/> | ||||||
| @@ -266,7 +266,7 @@ | |||||||
|       </div> |       </div> | ||||||
|     </nav> |     </nav> | ||||||
|  |  | ||||||
|     <main role="main" class="ms-sm-auto px-md-4" [ngClass]="slimSidebarEnabled ? 'col-slim' : 'col-md-9 col-lg-10'"> |     <main role="main" class="ms-sm-auto px-md-4" [ngClass]="slimSidebarEnabled ? 'col-slim' : 'col-md-9 col-lg-10 col-xxxl-11'"> | ||||||
|       <router-outlet></router-outlet> |       <router-outlet></router-outlet> | ||||||
|     </main> |     </main> | ||||||
|   </div> |   </div> | ||||||
|   | |||||||
| @@ -9,7 +9,7 @@ | |||||||
|   (dndEnd)="dndEnd.emit($event)" |   (dndEnd)="dndEnd.emit($event)" | ||||||
| > | > | ||||||
|  |  | ||||||
|   <a *ngIf="documents.length" class="btn-link" header-buttons [routerLink]="[]" (click)="showAll()" i18n>Show all</a> |   <a *ngIf="documents.length" class="btn-link text-decoration-none" header-buttons [routerLink]="[]" (click)="showAll()" i18n>Show all</a> | ||||||
|  |  | ||||||
|   <table *ngIf="documents.length; else empty" content class="table table-hover mb-0 align-middle"> |   <table *ngIf="documents.length; else empty" content class="table table-hover mb-0 align-middle"> | ||||||
|     <thead> |     <thead> | ||||||
| @@ -22,15 +22,15 @@ | |||||||
|     </thead> |     </thead> | ||||||
|     <tbody> |     <tbody> | ||||||
|       <tr *ngFor="let doc of documents" (mouseleave)="mouseLeaveCard()"> |       <tr *ngFor="let doc of documents" (mouseleave)="mouseLeaveCard()"> | ||||||
|         <td class="py-2 py-md-3"><a routerLink="/documents/{{doc.id}}" class="btn-link text-dark text-decoration-none">{{doc.created_date | customDate}}</a></td> |         <td class="py-2 py-md-3"><a routerLink="/documents/{{doc.id}}" class="btn-link text-dark text-decoration-none py-2 py-md-3">{{doc.created_date | customDate}}</a></td> | ||||||
|         <td class="py-2 py-md-3"> |         <td class="py-2 py-md-3"> | ||||||
|           <a routerLink="/documents/{{doc.id}}" title="Edit" i18n-title class="btn-link text-dark text-decoration-none">{{doc.title | documentTitle}}</a> |           <a routerLink="/documents/{{doc.id}}" title="Edit" i18n-title class="btn-link text-dark text-decoration-none py-2 py-md-3">{{doc.title | documentTitle}}</a> | ||||||
|         </td> |         </td> | ||||||
|         <td class="py-2 py-md-3 d-none d-md-table-cell"> |         <td class="py-2 py-md-3 d-none d-md-table-cell"> | ||||||
|           <pngx-tag [tag]="t" *ngFor="let t of doc.tags$ | async" class="ms-1" (click)="clickTag(t, $event)"></pngx-tag> |           <pngx-tag [tag]="t" *ngFor="let t of doc.tags$ | async" class="ms-1" (click)="clickTag(t, $event)"></pngx-tag> | ||||||
|         </td> |         </td> | ||||||
|         <td class="position-relative py-2 py-md-3 d-none d-md-table-cell"> |         <td class="position-relative py-2 py-md-3 d-none d-md-table-cell"> | ||||||
|           <a *ngIf="doc.correspondent !== null" class="btn-link" routerLink="/documents" [queryParams]="getCorrespondentQueryParams(doc.correspondent)">{{(doc.correspondent$ | async)?.name}}</a> |           <a *ngIf="doc.correspondent !== null" class="btn-link text-dark text-decoration-none py-2 py-md-3" routerLink="/documents" [queryParams]="getCorrespondentQueryParams(doc.correspondent)">{{(doc.correspondent$ | async)?.name}}</a> | ||||||
|           <div class="btn-group position-absolute top-50 end-0 translate-middle-y"> |           <div class="btn-group position-absolute top-50 end-0 translate-middle-y"> | ||||||
|             <a [href]="getPreviewUrl(doc)" title="View Preview" i18n-title target="_blank" class="btn px-4 btn-dark border-dark-subtle" |             <a [href]="getPreviewUrl(doc)" title="View Preview" i18n-title target="_blank" class="btn px-4 btn-dark border-dark-subtle" | ||||||
|             [ngbPopover]="previewContent" [popoverTitle]="doc.title | documentTitle" |             [ngbPopover]="previewContent" [popoverTitle]="doc.title | documentTitle" | ||||||
|   | |||||||
| @@ -12,7 +12,6 @@ | |||||||
|         </button> |         </button> | ||||||
|     </h4> |     </h4> | ||||||
|     <ul class="list-group"> |     <ul class="list-group"> | ||||||
|  |  | ||||||
|         <li class="list-group-item"> |         <li class="list-group-item"> | ||||||
|             <div class="row"> |             <div class="row"> | ||||||
|             <div class="col" i18n>Name</div> |             <div class="col" i18n>Name</div> | ||||||
| @@ -46,12 +45,12 @@ | |||||||
|             </div> |             </div> | ||||||
|             </div> |             </div> | ||||||
|         </li> |         </li> | ||||||
|  |     </ul> | ||||||
|  |  | ||||||
|     <div *ngIf="mailAccounts.length === 0" i18n>No mail accounts defined.</div> |     <div *ngIf="mailAccounts.length === 0" i18n>No mail accounts defined.</div> | ||||||
|     </ul> | </ng-container> | ||||||
|     </ng-container> |  | ||||||
|  |  | ||||||
|     <ng-container *pngxIfPermissions="{ action: PermissionAction.View, type: PermissionType.MailRule }"> | <ng-container *pngxIfPermissions="{ action: PermissionAction.View, type: PermissionType.MailRule }"> | ||||||
|     <h4 class="mt-4"> |     <h4 class="mt-4"> | ||||||
|         <ng-container i18n>Mail rules</ng-container> |         <ng-container i18n>Mail rules</ng-container> | ||||||
|         <button type="button" class="btn btn-sm btn-outline-primary ms-4" (click)="editMailRule()" *pngxIfPermissions="{ action: PermissionAction.Add, type: PermissionType.MailRule }"> |         <button type="button" class="btn btn-sm btn-outline-primary ms-4" (click)="editMailRule()" *pngxIfPermissions="{ action: PermissionAction.Add, type: PermissionType.MailRule }"> | ||||||
| @@ -62,7 +61,6 @@ | |||||||
|         </button> |         </button> | ||||||
|     </h4> |     </h4> | ||||||
|     <ul class="list-group"> |     <ul class="list-group"> | ||||||
|  |  | ||||||
|         <li class="list-group-item"> |         <li class="list-group-item"> | ||||||
|             <div class="row"> |             <div class="row"> | ||||||
|             <div class="col" i18n>Name</div> |             <div class="col" i18n>Name</div> | ||||||
| @@ -96,9 +94,9 @@ | |||||||
|             </div> |             </div> | ||||||
|             </div> |             </div> | ||||||
|         </li> |         </li> | ||||||
|  |     </ul> | ||||||
|  |  | ||||||
|     <div *ngIf="mailRules.length === 0" i18n>No mail rules defined.</div> |     <div *ngIf="mailRules.length === 0" i18n>No mail rules defined.</div> | ||||||
|     </ul> |  | ||||||
| </ng-container> | </ng-container> | ||||||
|  |  | ||||||
| <div *ngIf="!mailAccounts || !mailRules"> | <div *ngIf="!mailAccounts || !mailRules"> | ||||||
|   | |||||||
| @@ -1,6 +1,16 @@ | |||||||
| // bs options | // bs options | ||||||
| $enable-negative-margins: true; | $enable-negative-margins: true; | ||||||
|  |  | ||||||
|  | $grid-breakpoints: ( | ||||||
|  |   xs: 0, | ||||||
|  |   sm: 576px, | ||||||
|  |   md: 768px, | ||||||
|  |   lg: 992px, | ||||||
|  |   xl: 1200px, | ||||||
|  |   xxl: 1400px, | ||||||
|  |   xxxl: 2000px | ||||||
|  | ); | ||||||
|  |  | ||||||
| @import "node_modules/bootstrap/scss/bootstrap"; | @import "node_modules/bootstrap/scss/bootstrap"; | ||||||
| @import "theme"; | @import "theme"; | ||||||
| @import "~@ng-select/ng-select/themes/default.theme.css"; | @import "~@ng-select/ng-select/themes/default.theme.css"; | ||||||
| @@ -186,6 +196,12 @@ a, a:hover, | |||||||
|   color: var(--pngx-primary-darken-15) !important; |   color: var(--pngx-primary-darken-15) !important; | ||||||
| } | } | ||||||
|  |  | ||||||
|  | a.btn-link:hover, | ||||||
|  | a.btn-link:active, | ||||||
|  | a.btn-link:focus-visible { | ||||||
|  |   color: var(--pngx-primary-darken-5) !important; | ||||||
|  | } | ||||||
|  |  | ||||||
| .form-control-dark { | .form-control-dark { | ||||||
|   color: #fff; |   color: #fff; | ||||||
|   background-color: rgba(255, 255, 255, .1); |   background-color: rgba(255, 255, 255, .1); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 shamoon
					shamoon