Revert "css styles need units..."

This reverts commit 15c8f84960.
This commit is contained in:
Johannes Zellner
2025-10-17 13:22:44 +02:00
parent 084050bb2f
commit 462b490d05

View File

@@ -246,7 +246,7 @@ function setItemWidth() {
itemWidth.value = '100%';
itemSpacing.value = '10px';
} else if (width <= 550) {
itemWidth.value = Math.floor((width-gap*2)/2) + 'px';
itemWidth.value = Number((width-gap*2)/2).toFixed();
itemSpacing.value = '10px';
} else {
itemWidth.value = '190px';