diff --git a/app/templates/assiduites/widgets/conflict.j2 b/app/templates/assiduites/widgets/conflict.j2 index 8a60eae2..653eb4ff 100644 --- a/app/templates/assiduites/widgets/conflict.j2 +++ b/app/templates/assiduites/widgets/conflict.j2 @@ -59,7 +59,7 @@ function getWidth(start, end) { 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 + "%"; }