We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9fbee7d commit 66e0483Copy full SHA for 66e0483
src/librustdoc/html/static/js/search.js
@@ -2335,6 +2335,10 @@ ${item.displayPath}<span class="${type}">${name}</span>\
2335
2336
function makeTabHeader(tabNb, text, nbElems) {
2337
// https://blog.horizon-eda.org/misc/2020/02/19/ui.html
2338
+ //
2339
+ // CSS runs with `font-variant-numeric: tabular-nums` to ensure all
2340
+ // digits are the same width. \u{2007} is a Unicode space character
2341
+ // that is defined to be the same width as a digit.
2342
const fmtNbElems =
2343
nbElems < 10 ? `\u{2007}(${nbElems})\u{2007}\u{2007}` :
2344
nbElems < 100 ? `\u{2007}(${nbElems})\u{2007}` :
0 commit comments