feat(info): add a minimum reading time for info popups
This commit is contained in:
@@ -27,10 +27,12 @@ export function Info() {
|
|||||||
setSongInfo(newValue || {});
|
setSongInfo(newValue || {});
|
||||||
});
|
});
|
||||||
|
|
||||||
const readingTime =
|
const readingTime = Math.min(
|
||||||
((songInfo.comment?.split(" ").filter((x) => x).length || 0) /
|
((songInfo.comment?.split(" ").filter((x) => x).length || 0) /
|
||||||
kReadingWpm) *
|
kReadingWpm) *
|
||||||
60;
|
60,
|
||||||
|
15,
|
||||||
|
);
|
||||||
|
|
||||||
const pauseLength = Math.max(
|
const pauseLength = Math.max(
|
||||||
0,
|
0,
|
||||||
|
|||||||
Reference in New Issue
Block a user