Add preview tab for mobile & hide larger preview

This commit is contained in:
Michael Shamoon 2020-12-13 02:28:02 -08:00
parent 1c4d19198f
commit 05b9af6195

View File

@ -160,6 +160,15 @@
</ng-template>
</li>
<li [ngbNavItem]="4" class="d-md-none">
<a ngbNavLink>Preview</a>
<ng-template ngbNavContent>
<div class="pdf-viewer-container" *ngIf="getContentType() == 'application/pdf'">
<pdf-viewer [src]="previewUrl" [original-size]="false" [show-borders]="true"></pdf-viewer>
</div>
</ng-template>
</li>
</ul>
<div [ngbNavOutlet]="nav" class="mt-2"></div>
@ -171,7 +180,7 @@
</form>
</div>
<div class="col-md-6 col-xl-8 mb-3">
<div class="col-md-6 col-xl-8 mb-3 d-none d-md-block">
<div class="pdf-viewer-container" *ngIf="getContentType() == 'application/pdf'">
<pdf-viewer [src]="previewUrl" [original-size]="false" [show-borders]="true"></pdf-viewer>
</div>