From 280758f8674be4f9a23223ffa47b5805380bfa4f Mon Sep 17 00:00:00 2001 From: shpuld Date: Mon, 20 Nov 2017 13:27:45 +0200 Subject: [PATCH] Hide unknown type attachments, polish the upload preview styling --- src/components/attachment/attachment.js | 2 +- src/components/attachment/attachment.vue | 2 ++ src/components/post_status_form/post_status_form.vue | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/attachment/attachment.js b/src/components/attachment/attachment.js index de55161183..8a2a3826b4 100644 --- a/src/components/attachment/attachment.js +++ b/src/components/attachment/attachment.js @@ -24,7 +24,7 @@ const Attachment = { return this.nsfw && this.hideNsfwLocal && !this.showHidden }, isEmpty () { - return this.type === 'html' && !this.attachment.oembed + return (this.type === 'html' && !this.attachment.oembed) || this.type === 'unknown' } }, methods: { diff --git a/src/components/attachment/attachment.vue b/src/components/attachment/attachment.vue index 954c46b4bd..20d10cce1d 100644 --- a/src/components/attachment/attachment.vue +++ b/src/components/attachment/attachment.vue @@ -80,6 +80,8 @@ } img.media-upload { + margin-bottom: -2px; + max-height: 300px; width: 100%; height: 100%; flex: 1; diff --git a/src/components/post_status_form/post_status_form.vue b/src/components/post_status_form/post_status_form.vue index 4b9072a4e2..d02102860e 100644 --- a/src/components/post_status_form/post_status_form.vue +++ b/src/components/post_status_form/post_status_form.vue @@ -25,7 +25,7 @@
-
+