]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
Merge branch 'v2.0-visual-fixes' into dev
authorshamoon <4887959+shamoon@users.noreply.github.com>
Sun, 8 Oct 2023 02:42:47 +0000 (19:42 -0700)
committershamoon <4887959+shamoon@users.noreply.github.com>
Sun, 8 Oct 2023 02:42:47 +0000 (19:42 -0700)
src-ui/src/app/components/admin/users-groups/users-groups.component.html
src-ui/src/app/components/app-frame/app-frame.component.html
src-ui/src/app/components/dashboard/widgets/saved-view-widget/saved-view-widget.component.html
src-ui/src/app/components/manage/mail/mail.component.html
src-ui/src/styles.scss

index daea4cb2f1a00a32a31dd8ccbecef2968665dc32..d17437f89a9496a0a88418f899aafa77ec8c0f06 100644 (file)
@@ -12,7 +12,6 @@
         </button>
     </h4>
     <ul class="list-group">
-
         <li class="list-group-item">
         <div class="row">
             <div class="col" i18n>Username</div>
@@ -57,7 +56,6 @@
         </button>
     </h4>
     <ul *ngIf="groups.length > 0" class="list-group">
-
         <li class="list-group-item">
         <div class="row">
             <div class="col" i18n>Name</div>
index edb710c3677e4e7e128c098c7f8a7f26dc32e251..cd78e0b1a531a606d3b904a6511ab3c3bfbce9af 100644 (file)
@@ -62,7 +62,7 @@
 
 <div class="container-fluid">
   <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()">
         <svg class="sidebaricon-sm" fill="currentColor">
           <use *ngIf="slimSidebarEnabled" xlink:href="assets/bootstrap-icons.svg#chevron-double-right"/>
       </div>
     </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>
     </main>
   </div>
index fdaa7e9e238f93efdd61de2ae858e29dc3960340..ee4fb75d3c4561767cb93985b328581acbfc8786 100644 (file)
@@ -9,7 +9,7 @@
   (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">
     <thead>
     </thead>
     <tbody>
       <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">
-          <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 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>
         </td>
         <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">
             <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"
index 3f8bf4af465131ec667b23183e694b4584c82525..77a4be241d8fadb6d3a01b1e62f301e67c7b4eff 100644 (file)
@@ -12,7 +12,6 @@
         </button>
     </h4>
     <ul class="list-group">
-
         <li class="list-group-item">
             <div class="row">
             <div class="col" i18n>Name</div>
             </div>
             </div>
         </li>
-
-        <div *ngIf="mailAccounts.length === 0" i18n>No mail accounts defined.</div>
     </ul>
-    </ng-container>
 
-    <ng-container *pngxIfPermissions="{ action: PermissionAction.View, type: PermissionType.MailRule }">
+    <div *ngIf="mailAccounts.length === 0" i18n>No mail accounts defined.</div>
+</ng-container>
+
+<ng-container *pngxIfPermissions="{ action: PermissionAction.View, type: PermissionType.MailRule }">
     <h4 class="mt-4">
         <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 }">
@@ -62,7 +61,6 @@
         </button>
     </h4>
     <ul class="list-group">
-
         <li class="list-group-item">
             <div class="row">
             <div class="col" i18n>Name</div>
@@ -96,9 +94,9 @@
             </div>
             </div>
         </li>
-
-        <div *ngIf="mailRules.length === 0" i18n>No mail rules defined.</div>
     </ul>
+
+    <div *ngIf="mailRules.length === 0" i18n>No mail rules defined.</div>
 </ng-container>
 
 <div *ngIf="!mailAccounts || !mailRules">
index d93b6d8dbb8fc2bab9fb3482a8de35aa3a64a785..743f56c2a82a434d0037bb4b56fb11c72f3c8322 100644 (file)
@@ -1,6 +1,16 @@
 // bs options
 $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 "theme";
 @import "~@ng-select/ng-select/themes/default.theme.css";
@@ -186,6 +196,12 @@ a, a:hover,
   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 {
   color: #fff;
   background-color: rgba(255, 255, 255, .1);