From b31a1cf7e51577c847e1ff894aaffc4971f4f25c Mon Sep 17 00:00:00 2001 From: Jer Miller Date: Sun, 12 Apr 2026 11:05:53 -0600 Subject: [PATCH] stats: add thin space before token unit suffixes Insert Unicode thin space (U+2009) before B, M, K suffixes in fmtTokens() so token values visually match the spacing convention used by fmtBytes(). --- apps/stats/static/dashboard.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/stats/static/dashboard.js b/apps/stats/static/dashboard.js index bdcb132a7..8e47dc076 100644 --- a/apps/stats/static/dashboard.js +++ b/apps/stats/static/dashboard.js @@ -39,13 +39,13 @@ const Dashboard = (function() { function fmtTokens(num) { const value = Number(num); if (value >= 1e9) { - return (value / 1e9).toFixed(1) + 'B'; + return (value / 1e9).toFixed(1) + '\u2009B'; } if (value >= 1e6) { - return (value / 1e6).toFixed(1) + 'M'; + return (value / 1e6).toFixed(1) + '\u2009M'; } if (value >= 1e3) { - return (value / 1e3).toFixed(1) + 'K'; + return (value / 1e3).toFixed(1) + '\u2009K'; } return String(Math.round(value)); } -- 2.51.2