Fix: tweak pdf preview page borders

This commit is contained in:
shamoon 2024-05-17 19:05:11 -07:00
parent e283bbe5c2
commit 3facdefa40
2 changed files with 4 additions and 6 deletions

View File

@ -16,7 +16,7 @@
<pdf-viewer <pdf-viewer
[src]="previewURL" [src]="previewURL"
[original-size]="false" [original-size]="false"
[show-borders]="true" [show-borders]="false"
[show-all]="true" [show-all]="true"
(error)="onError($event)"> (error)="onError($event)">
</pdf-viewer> </pdf-viewer>

View File

@ -5,6 +5,7 @@
} }
.pdf-viewer-container { .pdf-viewer-container {
padding-top: 10px;
background-color: gray; background-color: gray;
pdf-viewer { pdf-viewer {
@ -14,11 +15,8 @@
} }
::ng-deep .ng2-pdf-viewer-container .page { ::ng-deep .ng2-pdf-viewer-container .page {
--page-margin: 10px auto; --page-margin: 0 auto 10px;
} --page-border: 0;
::ng-deep .ng2-pdf-viewer-container .page:last-child {
--page-margin: 10px auto 20px;
} }
::ng-deep form .ng-select-taggable { ::ng-deep form .ng-select-taggable {