aboutsummaryrefslogtreecommitdiff
path: root/src/components/attachment/attachment.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/attachment/attachment.js')
-rw-r--r--src/components/attachment/attachment.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/components/attachment/attachment.js b/src/components/attachment/attachment.js
index 84656ffa..bd424087 100644
--- a/src/components/attachment/attachment.js
+++ b/src/components/attachment/attachment.js
@@ -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`
]
},