updates
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user