Skip to content

Commit

Permalink
use tabular numbers in CharProgress (#5631)
Browse files Browse the repository at this point in the history
  • Loading branch information
surfdude29 authored Oct 7, 2024
1 parent f050c51 commit ff70b8f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/view/com/composer/char-progress/CharProgress.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 ? (
Expand Down

0 comments on commit ff70b8f

Please sign in to comment.