updated external image viewer

This commit is contained in:
vabene1111
2021-03-18 11:53:32 +01:00
parent 45a0bda758
commit 8c9ee37c46
3 changed files with 4 additions and 4 deletions

File diff suppressed because one or more lines are too long

View File

@ -122,7 +122,7 @@
<PdfViewer :recipe="recipe"></PdfViewer>
</div>
<div
v-if="recipe.file_path.includes('.png') || recipe.file_path.includes('.jpg') || recipe.file_path.includes('.jpeg')">
v-if="recipe.file_path.includes('.png') || recipe.file_path.includes('.jpg') || recipe.file_path.includes('.jpeg') || recipe.file_path.includes('.gif')">
<ImageViewer :recipe="recipe"></ImageViewer>
</div>
</template>

View File

@ -1,7 +1,7 @@
<template>
<div>
<img :src="pdfUrl" width="100%" height="700px" :alt="_('External Recipe Image')">
<div style="text-align: center">
<b-img :src="pdfUrl" :alt="_('External Recipe Image')"></b-img>
</div>
</template>