Use font-variant-numeric: tabular-nums;
for known numeric columms
#4085
Labels
affects: ux
Related to user experience
help wanted
Community contributors can implement this
ready
Ready for implementation
type: enhancement
New feature or request
work: frontend
Related to frontend code in the mathesar_ui directory
Milestone
Problem
When scanning a column of numbers in Mathesar, particularly currency values, there are subtle shifts in alignment due to varying widths of different numbers. Notice the gaps on the left-hand size of this screenshot:
Proposed solution
The CSS
font-variant-numeric: tabular-nums;
applied to these cells would give each digit a consistent width. Here's the "after" screenshot:Notice the "1"s in particular are rendering differently.
Additional context
The text was updated successfully, but these errors were encountered: