Hide unknown type attachments, polish the upload preview styling

This commit is contained in:
shpuld 2017-11-20 13:27:45 +02:00
parent 092848b32b
commit 280758f867
3 changed files with 4 additions and 2 deletions
src/components/attachment

View file

@ -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: {

View file

@ -80,6 +80,8 @@
}
img.media-upload {
margin-bottom: -2px;
max-height: 300px;
width: 100%;
height: 100%;
flex: 1;