fixed media attachment heights

This commit is contained in:
RiedleroD 2024-06-01 21:12:47 +02:00 committed by RiedleroD
parent 74b651a3a2
commit dd32a33d59

View file

@ -89,9 +89,9 @@ const Gallery = {
},
rowStyle (row) {
if (row.audio) {
return { 'aspect-ratio': '1/4' } // fixed reduced height for audio
return { 'height': '10em' } // fixed reduced height for audio
} else if (!row.minimal && !row.grid) {
return { 'aspect-ratio': `${(1 / (row.items.length + 0.6))}/1` }
return { 'aspect-ratio': `1/${(1 / (row.items.length + 0.6))}` }
}
},
itemStyle (id, row) {