mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
🐛 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">
|
||||||
@@ -54,7 +54,7 @@ export default mixins(
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
embedClass (): string[] {
|
embedClass(): string[] {
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
if (this.binaryData! !== null && this.binaryData!.mimeType! !== undefined && (this.binaryData!.mimeType! as string).startsWith('image')) {
|
if (this.binaryData! !== null && this.binaryData!.mimeType! !== undefined && (this.binaryData!.mimeType! as string).startsWith('image')) {
|
||||||
return ['image'];
|
return ['image'];
|
||||||
|
|||||||
Reference in New Issue
Block a user