Merge pull request #149 from paperless-ngx/fix-misc-frontend-fixes

Misc frontend fixes
This commit is contained in:
shamoon 2022-02-25 01:21:03 -08:00 committed by GitHub
commit 2309b12a31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 14 additions and 2 deletions

View File

@ -90,9 +90,14 @@
}
.nav-link-additional {
margin-top: 0.2rem;
margin-top: 0.1rem;
margin-left: 0.25rem;
padding-top: 0.5rem;
text-decoration: none;
&:hover {
text-decoration: underline;
}
svg {
margin-bottom: 2px;

View File

@ -149,7 +149,7 @@
<div class="col-md-6 col-xl-8 mb-3 d-none d-md-block" #pdfPreview>
<ng-container *ngIf="getContentType() == 'application/pdf'">
<div class="preview-sticky pdf-viewer-container" *ngIf="!useNativePdfViewer ; else nativePdfViewer">
<pdf-viewer [src]="previewUrl" [original-size]="false" [show-borders]="false" [show-all]="true" [(page)]="previewCurrentPage" [render-text-mode]="2" (after-load-complete)="pdfPreviewLoaded($event)"></pdf-viewer>
<pdf-viewer [src]="previewUrl" [original-size]="false" [show-borders]="true" [show-all]="true" [(page)]="previewCurrentPage" [render-text-mode]="2" (after-load-complete)="pdfPreviewLoaded($event)"></pdf-viewer>
</div>
<ng-template #nativePdfViewer>
<object [data]="previewUrl | safe" class="preview-sticky" width="100%"></object>

View File

@ -12,3 +12,8 @@
height: 100%;
}
}
::ng-deep .ng2-pdf-viewer-container .page {
--page-margin: 1px 0 -8px;
width: 100% !important;
}

View File

@ -34,6 +34,7 @@
padding: 0.5rem;
border-top-left-radius: 0.25rem;
border-bottom-right-radius: 0.25rem;
pointer-events: none;
.form-check {
padding: 0;

View File

@ -19,6 +19,7 @@
padding: 0.5rem;
border-top-left-radius: 0.25rem;
border-bottom-right-radius: 0.25rem;
pointer-events: none;
.form-check {
padding: 0;