From 4d22adbcf6866fb2995e090b2528bdb5968d7f78 Mon Sep 17 00:00:00 2001 From: Minseo Lee Date: Thu, 12 Sep 2024 23:30:57 +0900 Subject: [PATCH] Tabular numbers to video timestamp (#5293) --- .../com/util/post-embeds/VideoEmbedInner/TimeIndicator.tsx | 4 ++-- .../com/util/post-embeds/VideoEmbedInner/VideoWebControls.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/view/com/util/post-embeds/VideoEmbedInner/TimeIndicator.tsx b/src/view/com/util/post-embeds/VideoEmbedInner/TimeIndicator.tsx index 6636883f..be3f9071 100644 --- a/src/view/com/util/post-embeds/VideoEmbedInner/TimeIndicator.tsx +++ b/src/view/com/util/post-embeds/VideoEmbedInner/TimeIndicator.tsx @@ -37,11 +37,11 @@ export function TimeIndicator({time}: {time: number}) { ]}> - {minutes}:{seconds} + {`${minutes}:${seconds}`} ) diff --git a/src/view/com/util/post-embeds/VideoEmbedInner/VideoWebControls.tsx b/src/view/com/util/post-embeds/VideoEmbedInner/VideoWebControls.tsx index bb15db08..791025f7 100644 --- a/src/view/com/util/post-embeds/VideoEmbedInner/VideoWebControls.tsx +++ b/src/view/com/util/post-embeds/VideoEmbedInner/VideoWebControls.tsx @@ -370,7 +370,7 @@ export function Controls({ onPress={onPressPlayPause} /> - + {formatTime(currentTime)} / {formatTime(duration)} {hasSubtitleTrack && (