better handling of unknown files, better upload display

This commit is contained in:
Henry Jameson 2021-06-18 16:11:16 +03:00
parent bfe31e20ea
commit 8bab8658e8
4 changed files with 54 additions and 5 deletions

View file

@ -65,10 +65,11 @@ const Attachment = {
return [
{
'-loading': this.loading,
'-nsfw-placeholder': this.hidden
'-nsfw-placeholder': this.hidden,
'-editable': this.edit !== undefined
},
'-' + this.type,
'-' + this.size,
'-type-' + this.type,
this.size && '-size-' + this.size,
`-${this.useContainFit ? 'contain' : 'cover'}-fit`
]
},