🐛 Fix issue that binary data did not get displayed full height&width
This commit is contained in:
@@ -1,19 +1,19 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<span>
|
||||||
<div v-if="isLoading">
|
<div v-if="isLoading">
|
||||||
Loading binary data...
|
Loading binary data...
|
||||||
</div>
|
</div>
|
||||||
<div v-else-if="error">
|
<div v-else-if="error">
|
||||||
Error loading binary data
|
Error loading binary data
|
||||||
</div>
|
</div>
|
||||||
<div v-else>
|
<span v-else>
|
||||||
<video v-if="binaryData.mimeType && binaryData.mimeType.startsWith('video/')" controls autoplay>
|
<video v-if="binaryData.mimeType && binaryData.mimeType.startsWith('video/')" controls autoplay>
|
||||||
<source :src="embedSource" :type="binaryData.mimeType">
|
<source :src="embedSource" :type="binaryData.mimeType">
|
||||||
{{ $locale.baseText('binaryDataDisplay.yourBrowserDoesNotSupport') }}
|
{{ $locale.baseText('binaryDataDisplay.yourBrowserDoesNotSupport') }}
|
||||||
</video>
|
</video>
|
||||||
<embed v-else :src="embedSource" class="binary-data" :class="embedClass"/>
|
<embed v-else :src="embedSource" class="binary-data" :class="embedClass()"/>
|
||||||
</div>
|
</span>
|
||||||
</div>
|
</span>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
|
|||||||
Reference in New Issue
Block a user