Skip to content

Commit

Permalink
fix wrong stories width calculation making 100% width stories not cen…
Browse files Browse the repository at this point in the history
…tered
  • Loading branch information
Mobyrr authored Oct 23, 2024
1 parent f583371 commit 4f2c7b0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ function updateSize() {
if (!gridEl.value) return
if (gridTemplateWidth.value.endsWith('%')) {
gridColumnWidth.value = viewWidth.value * Number.parseInt(gridTemplateWidth.value) / 100 - gap
gridColumnWidth.value = viewWidth.value * Number.parseInt(gridTemplateWidth.value) / 100 - gap * 2
}
else {
gridColumnWidth.value = Number.parseInt(gridTemplateWidth.value)
Expand Down

0 comments on commit 4f2c7b0

Please sign in to comment.