forked from AkkomaGang/akkoma-fe
set flex-shrink and flex-basis explicitly
This commit is contained in:
parent
b9c281c553
commit
d76b83efc8
1 changed files with 1 additions and 1 deletions
|
@ -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 { flex: this.getAspectRatio(id) / total }
|
return { flex: `${this.getAspectRatio(id) / total} 1 0%` }
|
||||||
},
|
},
|
||||||
getAspectRatio (id) {
|
getAspectRatio (id) {
|
||||||
const size = this.sizes[id]
|
const size = this.sizes[id]
|
||||||
|
|
Loading…
Reference in a new issue