Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
deguchi committed Apr 27, 2022
1 parent 50cca62 commit 4ef01f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Hiradumi.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ const putItem = (currentItems: any[], rowWidth: number, rowRatio: number, itemHe

const height = itemHeight * rowRatio
currentItems.some((item) => {
const hasAspect = item.properties && item.properties.aspect
let hasAspect = item.properties?.aspect
const aspect: number = hasAspect ? item.properties.aspect : 0.666666
const width = Math.floor(height * aspect) + itemMargin
// 行よりも大きくなるなら終了
Expand Down

0 comments on commit 4ef01f8

Please sign in to comment.