1
0
forked from ScoDoc/ScoDoc

Assiduité: conflit_resolver bug affichage #904

This commit is contained in:
Iziram 2024-05-31 10:29:54 +02:00
parent 80bd02114e
commit 07a8658672

View File

@ -59,7 +59,7 @@ function getWidth(start, end) {
const duration = (endTime - startTime) / 1000 / 60; const duration = (endTime - startTime) / 1000 / 60;
const percent = (duration / (t_end * 60 - t_start * 60)) * 100; const percent = Math.min((duration / (t_end * 60 - t_start * 60)) * 100, 100);
return percent + "%"; return percent + "%";
} }