From 07a86586722c949bb9a40f74f827cdc8c441c6eb Mon Sep 17 00:00:00 2001 From: Iziram Date: Fri, 31 May 2024 10:29:54 +0200 Subject: [PATCH] =?UTF-8?q?Assiduit=C3=A9:=20conflit=5Fresolver=20bug=20af?= =?UTF-8?q?fichage=20#904?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/templates/assiduites/widgets/conflict.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 + "%"; }