From 79ea2fba2c7b1ededb4e3d99e957c950d3b8df11 Mon Sep 17 00:00:00 2001 From: lyc8503 Date: Wed, 21 Aug 2024 11:00:53 +0800 Subject: [PATCH] fix #54: show date in popup and add touchscreen support --- components/DetailBar.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/DetailBar.tsx b/components/DetailBar.tsx index 6be4377..88769b6 100644 --- a/components/DetailBar.tsx +++ b/components/DetailBar.tsx @@ -47,12 +47,13 @@ export default function DetailBar({ -
{dayPercent + '%'}
+
{dayPercent + '% at ' + new Date(dayStart * 1000).toLocaleDateString()}
{dayDownTime > 0 && (
{`Down for ${moment.preciseDiff(moment(0), moment(dayDownTime * 1000))}`}
)}