diff --git a/public/assets/styles/main.css b/public/assets/styles/main.css index d600ceb..4633dc8 100644 --- a/public/assets/styles/main.css +++ b/public/assets/styles/main.css @@ -930,3 +930,8 @@ input:-webkit-autofill:active{ .external-link-icon::after { content: '\2197'; /* Unicode character for an arrow */ } + +.monospace-big { + font-family: monospace; + font-size: 1.2em; +} diff --git a/src/format_delta.js b/src/format_delta.js index 9cdde9f..5bd717c 100644 --- a/src/format_delta.js +++ b/src/format_delta.js @@ -1,7 +1,8 @@ function formatMMRDelta(mmr_delta, monospace = false) { const deltaSymbol = mmr_delta >= 0 ? '↑' : '↓'; const deltaColor = mmr_delta >= 0 ? 'chartreuse' : '#f85e73'; - const fontFamily = monospace ? 'font-family: monospace;' : ''; + // Adjust the font size when monospace is true + const fontFamily = monospace ? 'font-family: monospace; font-size: 1.2em;' : ''; return `${deltaSymbol}${Math.abs(mmr_delta).toFixed(2)}`; } diff --git a/views/leaderboards.ejs b/views/leaderboards.ejs index a207952..f692027 100644 --- a/views/leaderboards.ejs +++ b/views/leaderboards.ejs @@ -31,7 +31,7 @@ <%= i.nickname %> - <%= i.mmr.toFixed(3) %> + <%= i.mmr.toFixed(3) %>