From ec73ec4f839e73000ac025960aa0c22348cb1b7b Mon Sep 17 00:00:00 2001 From: zhouxudong Date: Thu, 10 Feb 2022 10:35:52 +0800 Subject: [PATCH] *Fix bug #19368. --- module/common/view/kanban.html.php | 2 +- module/story/css/review.zh-cn.css | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/module/common/view/kanban.html.php b/module/common/view/kanban.html.php index e314ecee49..f016430254 100644 --- a/module/common/view/kanban.html.php +++ b/module/common/view/kanban.html.php @@ -186,7 +186,7 @@ function renderProjectItem(item, $item) { $progress = $('
').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'); diff --git a/module/story/css/review.zh-cn.css b/module/story/css/review.zh-cn.css index 76da72e24c..c50aad163d 100644 --- a/module/story/css/review.zh-cn.css +++ b/module/story/css/review.zh-cn.css @@ -1 +1 @@ -.thWidth {width: 80px !important;} +.thWidth {width: 120px !important;}