Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<template>
<div class="attachment-preview">
<embed src="http://localhost:8000/media/user_1/attachements/sample-1.pdf" type="application/pdf" width="100%" height="100%">
</div>
</template>
<script>
export default {
name: 'FeatureAttachmentPreview',
computed: {
},
mounted() {
//this.initPage();
},
methods: {
}
};
</script>
<style lang="less">
.attachment-preview {
width: 100vw;
padding: 0;
@media screen and (min-width: 726px) {
height: calc(100vh - 70px - 1em);
margin: .5em auto;
box-shadow: 1px 2px 10px grey;
}
@media screen and (max-width: 725px) {
height: calc(100vh - 110px);
margin: 0 auto;
}
}
</style>