Tabular numbers to video timestamp (#5293)
parent
7da3ddbe24
commit
4d22adbcf6
|
@ -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>
|
||||
)
|
||||
|
|
|
@ -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 && (
|
||||
|
|
Loading…
Reference in New Issue