hotfix/92-osc timer is absolute (#92)

Fixes issues with approximating timers in the app views
This commit is contained in:
Carlos Valente
2022-01-14 20:47:39 +01:00
committed by GitHub
parent 48093b8651
commit ba782d5d22
13 changed files with 90 additions and 99 deletions
@@ -18,11 +18,7 @@ export default function MinimalTimer(props) {
return (
<div className={time.finished ? style.containerFinished : style.container}>
<div
className={
showOverlay ? style.messageOverlayActive : style.messageOverlay
}
>
<div className={showOverlay ? style.messageOverlayActive : style.messageOverlay}>
<div className={style.message}>{pres.text}</div>
</div>
<NavLogo />
@@ -30,7 +26,7 @@ export default function MinimalTimer(props) {
style={{ fontSize: `${89 / (clean.length - 1)}vw` }}
className={isPlaying ? style.timer : style.timerPaused}
>
{time.running < 0 ? `-${timer}` : timer}
{time.isNegative ? `-${timer}` : timer}
</div>
</div>
);