From 80df8096395593c9344d2bd52d5f4ce78da2c23e Mon Sep 17 00:00:00 2001 From: dvdrw Date: Wed, 26 Feb 2025 23:38:31 +0100 Subject: [PATCH] feat(info): add a minimum reading time for info popups --- src/graphics/Info.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/graphics/Info.tsx b/src/graphics/Info.tsx index 57d769b..3fca76c 100644 --- a/src/graphics/Info.tsx +++ b/src/graphics/Info.tsx @@ -27,10 +27,12 @@ export function Info() { setSongInfo(newValue || {}); }); - const readingTime = + const readingTime = Math.min( ((songInfo.comment?.split(" ").filter((x) => x).length || 0) / kReadingWpm) * - 60; + 60, + 15, + ); const pauseLength = Math.max( 0,