mirror of
https://git.pleroma.social/sjw/pleroma-fe.git
synced 2025-01-26 06:30:09 +01:00
set flex amount correctly
This commit is contained in:
parent
ad04522206
commit
b9c281c553
@ -41,7 +41,7 @@ const Gallery = {
|
|||||||
},
|
},
|
||||||
itemStyle (id, row) {
|
itemStyle (id, row) {
|
||||||
const total = sumBy(row, item => this.getAspectRatio(item.id))
|
const total = sumBy(row, item => this.getAspectRatio(item.id))
|
||||||
return { flexGrow: this.getAspectRatio(id) / total }
|
return { flex: this.getAspectRatio(id) / total }
|
||||||
},
|
},
|
||||||
getAspectRatio (id) {
|
getAspectRatio (id) {
|
||||||
const size = this.sizes[id]
|
const size = this.sizes[id]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user