css styles need units...

This commit is contained in:
Johannes Zellner
2025-10-16 22:49:04 +02:00
parent f37dd03e4b
commit 15c8f84960

View File

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