file preview refactoring

This commit is contained in:
Peter Papp
2021-08-10 11:43:05 +02:00
parent 843a1bc690
commit 98688b81c0
9 changed files with 228 additions and 163 deletions

View File

@@ -0,0 +1,17 @@
<template>
<img
id="printable-file"
class="file"
:class="{'file-shadow': ! this.$isMobile() }"
:src="file.file_url"
/>
</template>
<script>
export default {
name: 'ImageFile',
props: [
'file'
],
}
</script>