aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorlambda <pleromagit@rogerbraun.net>2017-11-20 11:52:46 +0000
committerlambda <pleromagit@rogerbraun.net>2017-11-20 11:52:46 +0000
commit80203636803c3035a46d0d82c7778e4aff8d2612 (patch)
treee0e7d663e200597bea6ef0f63ad942ab1ac0fa10 /src
parent6ac8a43e28e11c6970ec62733a551f41ce04e80c (diff)
parent280758f8674be4f9a23223ffa47b5805380bfa4f (diff)
Merge branch 'fix/attachment-fixes-media-upload-unknown-type' into 'develop'
Hide unknown type attachments, polish the upload preview styling See merge request pleroma/pleroma-fe!168
Diffstat (limited to 'src')
-rw-r--r--src/components/attachment/attachment.js2
-rw-r--r--src/components/attachment/attachment.vue2
-rw-r--r--src/components/post_status_form/post_status_form.vue2
3 files changed, 4 insertions, 2 deletions
diff --git a/src/components/attachment/attachment.js b/src/components/attachment/attachment.js
index de551611..8a2a3826 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 954c46b4..20d10cce 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 4b9072a4..d0210286 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 @@
<i class="icon-cancel" @click="clearError"></i>
</div>
<div class="attachments">
- <div class="attachment" v-for="file in newStatus.files">
+ <div class="attachment base03-border" v-for="file in newStatus.files">
<i class="fa icon-cancel" @click="removeMediaFile(file)"></i>
<img class="thumbnail media-upload" :src="file.image" v-if="type(file) === 'image'"></img>
<video v-if="type(file) === 'video'" :src="file.image" controls></video>