aboutsummaryrefslogtreecommitdiff
path: root/src/components/attachment/attachment.js
diff options
context:
space:
mode:
authorshpuld <shp@cock.li>2018-04-09 19:43:31 +0300
committershpuld <shp@cock.li>2018-04-09 19:43:31 +0300
commitf4f9b3fa265df95ade97625cf2f870ded0825eb1 (patch)
treebc90340face910ee2c72ebcd9ee8911d62ac9ee3 /src/components/attachment/attachment.js
parent936ca1a38cc1b9206dea8970eda6885fc7d4391d (diff)
small fixes
Diffstat (limited to 'src/components/attachment/attachment.js')
-rw-r--r--src/components/attachment/attachment.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/components/attachment/attachment.js b/src/components/attachment/attachment.js
index cd72e571..163dd74f 100644
--- a/src/components/attachment/attachment.js
+++ b/src/components/attachment/attachment.js
@@ -6,7 +6,8 @@ const Attachment = {
props: [
'attachment',
'nsfw',
- 'statusId'
+ 'statusId',
+ 'size'
],
data () {
return {
@@ -29,6 +30,9 @@ const Attachment = {
},
isEmpty () {
return (this.type === 'html' && !this.attachment.oembed) || this.type === 'unknown'
+ },
+ isSmall () {
+ return this.size === 'small'
}
},
methods: {