Tabular numbers to video timestamp (#5293)
parent
7da3ddbe24
commit
4d22adbcf6
|
@ -37,11 +37,11 @@ export function TimeIndicator({time}: {time: number}) {
|
||||||
]}>
|
]}>
|
||||||
<Text
|
<Text
|
||||||
style={[
|
style={[
|
||||||
{color: t.palette.white, fontSize: 12},
|
{color: t.palette.white, fontSize: 12, fontVariant: ['tabular-nums']},
|
||||||
a.font_bold,
|
a.font_bold,
|
||||||
{lineHeight: 1.25},
|
{lineHeight: 1.25},
|
||||||
]}>
|
]}>
|
||||||
{minutes}:{seconds}
|
{`${minutes}:${seconds}`}
|
||||||
</Text>
|
</Text>
|
||||||
</Animated.View>
|
</Animated.View>
|
||||||
)
|
)
|
||||||
|
|
|
@ -370,7 +370,7 @@ export function Controls({
|
||||||
onPress={onPressPlayPause}
|
onPress={onPressPlayPause}
|
||||||
/>
|
/>
|
||||||
<View style={a.flex_1} />
|
<View style={a.flex_1} />
|
||||||
<Text style={{color: t.palette.white}}>
|
<Text style={{color: t.palette.white, fontVariant: ['tabular-nums']}}>
|
||||||
{formatTime(currentTime)} / {formatTime(duration)}
|
{formatTime(currentTime)} / {formatTime(duration)}
|
||||||
</Text>
|
</Text>
|
||||||
{hasSubtitleTrack && (
|
{hasSubtitleTrack && (
|
||||||
|
|
Loading…
Reference in New Issue