From f4f9b3fa265df95ade97625cf2f870ded0825eb1 Mon Sep 17 00:00:00 2001 From: shpuld Date: Mon, 9 Apr 2018 19:43:31 +0300 Subject: small fixes --- src/components/attachment/attachment.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/components/attachment/attachment.js') 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: { -- cgit v1.2.3-70-g09d2