Tabular numbers to video timestamp (#5293)

zio/stable^2^2
Minseo Lee 2024-09-12 23:30:57 +09:00 committed by GitHub
parent 7da3ddbe24
commit 4d22adbcf6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -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>
)

View File

@ -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 && (