Fix preview not loading on mobile

This commit is contained in:
Michael Shamoon 2023-01-04 06:58:42 -08:00
parent 0fd51e35e1
commit 80910c72cf

View File

@ -149,7 +149,7 @@
<li [ngbNavItem]="4" class="d-md-none">
<a ngbNavLink>Preview</a>
<ng-template ngbNavContent *ngIf="pdfPreview.offsetParent === undefined">
<ng-template ngbNavContent *ngIf="!pdfPreview.offsetParent">
<div class="position-relative">
<ng-container *ngIf="getContentType() === 'application/pdf'">
<div class="preview-sticky pdf-viewer-container" *ngIf="!useNativePdfViewer ; else nativePdfViewer">