From bac092d953eb661bcbcc06b734c509e68f939818 Mon Sep 17 00:00:00 2001 From: shpuld Date: Mon, 13 Nov 2017 11:08:34 +0200 Subject: Make oembeds behave properly, hide empty html attachments, hide overflowing timeline background. --- src/components/attachment/attachment.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/components/attachment/attachment.js') diff --git a/src/components/attachment/attachment.js b/src/components/attachment/attachment.js index ccf26b79..de551611 100644 --- a/src/components/attachment/attachment.js +++ b/src/components/attachment/attachment.js @@ -23,12 +23,8 @@ const Attachment = { hidden () { return this.nsfw && this.hideNsfwLocal && !this.showHidden }, - autoHeight () { - if (this.type === 'image' && this.nsfw) { - return { - 'min-height': '109px' - } - } + isEmpty () { + return this.type === 'html' && !this.attachment.oembed } }, methods: { -- cgit v1.2.3-70-g09d2