fixed media attachment heights
This commit is contained in:
parent
74b651a3a2
commit
dd32a33d59
1 changed files with 2 additions and 2 deletions
|
@ -89,9 +89,9 @@ const Gallery = {
|
||||||
},
|
},
|
||||||
rowStyle (row) {
|
rowStyle (row) {
|
||||||
if (row.audio) {
|
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) {
|
} 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) {
|
itemStyle (id, row) {
|
||||||
|
|
Loading…
Reference in a new issue