This commit is contained in:
zhouxudong
2022-02-10 10:35:52 +08:00
parent 523aa7db37
commit ec73ec4f83
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -186,7 +186,7 @@ function renderProjectItem(item, $item)
{
$progress = $('<div class="ring"><span></span></div>').appendTo($item);
}
var progress = Math.max(0, Math.min(100, Math.round(item.hours && !Array.isArray(item.hours) ? Math.round(item.hours.progress || 0) : 0)));
var progress = Math.max(0, Math.min(100, Math.round(progress)));
$progress.find('span').text(progress);
$progress.css('background-position-x', -Math.ceil(progress / 2) * 24);
$item.addClass('has-progress');
+1 -1
View File
@@ -1 +1 @@
.thWidth {width: 80px !important;}
.thWidth {width: 120px !important;}