mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
🐛 Fix issue that binary data did not get displayed full height&width
This commit is contained in:
parent
8cefafa47d
commit
b23a87c7f4
|
@ -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">
|
||||||
|
|
Loading…
Reference in a new issue