fix(ui): refine GitHub stars display

This commit is contained in:
Shantur
2026-03-31 18:51:53 +01:00
parent 481dd1a88a
commit b61cfbd9f9
2 changed files with 1 additions and 4 deletions

View File

@@ -19,9 +19,6 @@ export function formatCompactCount(value: number): string {
return `${(value / 1_000_000).toFixed(1)}M`
}
if (value >= 10_000) {
return `${Math.round(value / 1_000)}K`
}
if (value >= 1_000) {
const label = `${(value / 1_000).toFixed(1)}K`
return label.replace(/\.0K$/, "K")
}