feat(info): add a minimum reading time for info popups
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user