Skip to content

Commit

Permalink
Tabular numbers to video timestamp (#5293)
Browse files Browse the repository at this point in the history
  • Loading branch information
quiple authored Sep 12, 2024
1 parent 7da3ddb commit 4d22adb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ export function TimeIndicator({time}: {time: number}) {
]}>
<Text
style={[
{color: t.palette.white, fontSize: 12},
{color: t.palette.white, fontSize: 12, fontVariant: ['tabular-nums']},
a.font_bold,
{lineHeight: 1.25},
]}>
{minutes}:{seconds}
{`${minutes}:${seconds}`}
</Text>
</Animated.View>
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ export function Controls({
onPress={onPressPlayPause}
/>
<View style={a.flex_1} />
<Text style={{color: t.palette.white}}>
<Text style={{color: t.palette.white, fontVariant: ['tabular-nums']}}>
{formatTime(currentTime)} / {formatTime(duration)}
</Text>
{hasSubtitleTrack && (
Expand Down

0 comments on commit 4d22adb

Please sign in to comment.