diff --git a/app/templates/index.html b/app/templates/index.html index 477d524..2bf5780 100644 --- a/app/templates/index.html +++ b/app/templates/index.html @@ -74,6 +74,11 @@ return `${m}:${s.toString().padStart(2, '0')}.${ms}`; }; + const formatTimeSimple = (secs) => { + if (isNaN(secs) || secs < 0) return "0.00s"; + return `${secs.toFixed(2)}s`; + }; + const formatBeat = (secs, bpmVal) => { if (isNaN(secs) || secs < 0) return "1.1.1"; const beatDuration = 60 / bpmVal; @@ -5956,7 +5961,7 @@
{Array.from({ length: Math.ceil(maxDuration) }).map((_, i) => { const sec = i; const x = sec * zoom; - return (
{formatTime(sec)}
); + return (
{formatTimeSimple(sec)}
); })}
@@ -6150,7 +6155,7 @@
{Array.from({ length: Math.ceil(st.buffer ? st.buffer.duration : 0) }).map((_, i) => { const sec = i; const x = sec * zoom; - return (
{formatTime(sec)}
); + return (
{formatTimeSimple(sec)}
); })}