Hide unknown type attachments, polish the upload preview styling
This commit is contained in:
parent
092848b32b
commit
280758f867
3 changed files with 4 additions and 2 deletions
src/components/attachment
|
@ -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: {
|
||||
|
|
|
@ -80,6 +80,8 @@
|
|||
}
|
||||
|
||||
img.media-upload {
|
||||
margin-bottom: -2px;
|
||||
max-height: 300px;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
flex: 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue