I'd like to propose using special different-width spaces to fix it and have all numbers aligned vertically around decimal point to make it easy to spot the difference between orders of magnitude differences within one format range (e.g. 1.11MB vs 111MB)
Current view, lacking vertical alignment:
111 k - label is misasligned: a) only 1 space b) decimal point width ≠ number width in some fonts
11.1 k
1.11 k - this looks bigger than 111 even though it's a hundred times smaller!
Proposed view, with perfect vertical alignment even with variable-width fonts
111 k Punctuation Space in place of decimal point, Figure Space elsewhere, Hair Space separates numbers and labels
11.1 k
1.11 k Hair Space separator between the number and the label (this helps slightly reduce the amount of whitespace)
Links to symbols used here: Figure Space, Punctuation Space, Hair Space
One more tricky point: given that the labels themselves have different widths and break the alignment, you'd need to either
- Since the maximum number width is known (3 digits left of decimal point max, then the prefix changes), make the whole column left-aligned (the numbers with fewer than 3 digits are left-padded with Figure Space), then the variable width of the last symbol would be irrelevant to the alignment of the numbers
- Use a different fixed-width font for either the whole column or at least the labels
- Move the labels to a separate column so that the numbers are aligned w/o them
Old:
111 k
11.1 k
1.11 k
New:
111 k
11.1 k
1.11 k
And the same views with a fixed-width font in code tags
Code: Select all
Old:
111 k
11.1 k
1.11 k
New:
111 k
11.1 k
1.11 k