Skip to content

Commit

Permalink
Merge pull request #10414 from hassnian/issue-10412
Browse files Browse the repository at this point in the history
fix: Top Collection representation "streched" (only Base)
  • Loading branch information
vikiival authored Jun 10, 2024
2 parents 28b42b5 + 4985bdc commit 13441bb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion composables/useDynamicGrid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,12 @@ export default ({
return mobileCols
}

return fillRows ? getColsFilledByAllRows(getCols) : getCols
if (fillRows) {
const filledCols = getColsFilledByAllRows(getCols)
return filledCols === 1 && !isMobileVariant.value ? getCols : filledCols
}

return getCols
})

const isReady = computed(() => Boolean(containerWidth.value))
Expand Down

0 comments on commit 13441bb

Please sign in to comment.