forked from mirrors/akkoma-fe
fixed media attachment heights
This commit is contained in:
parent
6b4360ac2a
commit
2658ca88eb
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