This commit is contained in:
Matt 2025-06-04 17:35:49 +02:00
parent 1baa1e3c4d
commit 673b6c6748
1 changed files with 6 additions and 4 deletions

View File

@ -50,14 +50,16 @@
<!-- PDF Preview -->
<div v-else-if="isPdf" class="pdf-preview-container">
<iframe
:src="previewUrl"
<object
:data="previewUrl"
type="application/pdf"
width="100%"
height="100%"
frameborder="0"
@load="loading = false"
@error="handlePreviewError"
/>
>
<p>PDF preview is not available. <a :href="previewUrl" target="_blank">Click here to view the PDF</a>.</p>
</object>
</div>
</v-card-text>