This commit is contained in:
Edijs 2019-02-22 13:53:43 -07:00
parent 28660d6986
commit 66a105a519

View file

@ -34,9 +34,7 @@ const Gallery = {
return rows return rows
}, },
rowHeight () { rowHeight () {
return itemsPerRow => ({ return itemsPerRow => ({ 'height': `${(this.width / (itemsPerRow + 0.6))}px` })
'height': this.attachments.length === 1 ? '260px' : `${(this.width / (itemsPerRow + 0.6))}px`
})
}, },
useContainFit () { useContainFit () {
return this.$store.state.config.useContainFit return this.$store.state.config.useContainFit