fix/progress bar limitation added

This commit is contained in:
nicoagostini committed 2025-05-16 12:46:23 -07:00
1 parent 629e4f8ae8
commit 043c24a417
3 files changed
+5 -5

No files matched your search

+2 -2
View File
@@ -22,11 +22,11 @@
</div>
<strong class="text-green-500">
<div class="float-right mb-2">
<%=Math.floor(plan.progress) %>% complete
<%=Math.floor(plan.progress) > 100 ? 100 : Math.floor(plan.progress) %>% complete
</div>
<div class="bg-gray-400 mt-7">
<div class="bg-green-600 h-2.5 rounded-full dark:bg-green-500"
style="width: <%= plan.progress %>%;"></div>
style="width: <%= plan.progress > 100 ? 100 : plan.progress %>%;"></div>
</div>
</div>