aboutsummaryrefslogtreecommitdiff
path: root/src/components/attachment/attachment.js
diff options
context:
space:
mode:
authorshpuld <shp@cock.li>2017-11-13 11:08:34 +0200
committershpuld <shp@cock.li>2017-11-13 11:08:34 +0200
commitbac092d953eb661bcbcc06b734c509e68f939818 (patch)
tree823423f855733e1a3f54c13cb91f2015aeceb410 /src/components/attachment/attachment.js
parentf74ad6d3e1cbfa3d855bdd993d2d6a060b8deb2d (diff)
Make oembeds behave properly, hide empty html attachments, hide overflowing timeline background.
Diffstat (limited to 'src/components/attachment/attachment.js')
-rw-r--r--src/components/attachment/attachment.js8
1 files changed, 2 insertions, 6 deletions
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: {