1K reviewers

This commit is contained in:
nimrodkor
2025-07-07 16:18:26 +03:00
parent 2677c73bdd
commit dd9b3e08c0
2 changed files with 4 additions and 15 deletions

View File

@@ -324,14 +324,8 @@
if (counterElement) {
counterElement.dataset.count = count;
// Apply the same formatting logic as formatStats
if (count > 1000) {
let val = (count / 1000).toFixed(1);
if (val.endsWith('.0')) val = val.slice(0, -2);
counterElement.textContent = val + 'K';
} else {
counterElement.textContent = count;
}
// Format with commas instead of K notation
counterElement.textContent = count.toLocaleString();
}
}
@@ -347,13 +341,8 @@
document.querySelectorAll('.stat-value[data-count]').forEach(el => {
const num = parseFloat(el.dataset.count);
if (!isNaN(num)) {
if (num > 1000) {
let val = (num / 1000).toFixed(1);
if (val.endsWith('.0')) val = val.slice(0, -2);
el.textContent = val + 'K';
} else {
el.textContent = num
}
// Format with commas instead of K notation
el.textContent = num.toLocaleString();
}
});
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 MiB

After

Width:  |  Height:  |  Size: 153 KiB