aboutsummaryrefslogtreecommitdiff
path: root/src/components/attachment/attachment.js
diff options
context:
space:
mode:
authorshpuld <shp@cock.li>2018-04-14 15:45:38 +0300
committershpuld <shp@cock.li>2018-04-14 15:45:38 +0300
commitfa8fa2d3302b5282c1ebc129278365d100be7533 (patch)
tree8629e096070b542b4066fe2d217b596073a0cf10 /src/components/attachment/attachment.js
parentc3bea8dfd15fa6abcd43ace03f0f7556e75c8082 (diff)
Force oembeds to use 100% width
Diffstat (limited to 'src/components/attachment/attachment.js')
-rw-r--r--src/components/attachment/attachment.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/components/attachment/attachment.js b/src/components/attachment/attachment.js
index 163dd74f..d9bc4477 100644
--- a/src/components/attachment/attachment.js
+++ b/src/components/attachment/attachment.js
@@ -33,6 +33,9 @@ const Attachment = {
},
isSmall () {
return this.size === 'small'
+ },
+ fullwidth () {
+ return fileTypeService.fileType(this.attachment.mimetype) === 'html'
}
},
methods: {