use tabular numbers in CharProgress (#5631)

This commit is contained in:
surfdude29
2024-10-07 15:45:05 +01:00
committed by GitHub
parent f050c51f11
commit ff70b8ff61
@@ -30,7 +30,13 @@ export function CharProgress({
return (
<View
style={[a.flex_row, a.align_center, a.justify_between, a.gap_sm, style]}>
<Text style={[{color: textColor}, a.flex_grow, a.text_right, textStyle]}>
<Text
style={[
{color: textColor, fontVariant: ['tabular-nums']},
a.flex_grow,
a.text_right,
textStyle,
]}>
{maxLength - count}
</Text>
{count > maxLength ? (