From 0a7b5b0efc3761c5ad87963dd40cea3dad255391 Mon Sep 17 00:00:00 2001 From: zhengrunyu Date: Thu, 2 Dec 2021 09:55:54 +0800 Subject: [PATCH 1/2] * Code for kanban. --- module/product/view/kanban.html.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/product/view/kanban.html.php b/module/product/view/kanban.html.php index 740a253614..6e9228e03e 100644 --- a/module/product/view/kanban.html.php +++ b/module/product/view/kanban.html.php @@ -44,7 +44,7 @@ else } $kanbanColumns['normalRelease'] = array('name' => $lang->product->normalRelease, 'type' => 'normalRelease'); $userPrivs = array(); -$userPrivs['product'] = common::hasPriv('product', 'browse'); +$userPrivs['product'] = common::hasPriv('product', 'browse'); $userPrivs['productplan'] = common::hasPriv('productplan', 'view'); $userPrivs['project'] = common::hasPriv('project', 'index'); $userPrivs['execution'] = common::hasPriv('execution', 'task'); From bd075ac17d3daac6c4facd3584dfec2413c207db Mon Sep 17 00:00:00 2001 From: zhengrunyu Date: Thu, 2 Dec 2021 11:18:53 +0800 Subject: [PATCH 2/2] *Fixbug #16978. --- module/common/view/kanban.html.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/module/common/view/kanban.html.php b/module/common/view/kanban.html.php index 5d01a0e574..e061675b4f 100644 --- a/module/common/view/kanban.html.php +++ b/module/common/view/kanban.html.php @@ -19,7 +19,8 @@ #kanbanList .kanban-header {position: relative;} #kanbanList .kanban-item.link-block {padding: 0;} #kanbanList .kanban-item.link-block a {padding: 10px; display: block;} -#kanbanList .kanban-card > .title {white-space: nowrap; overflow: hidden; text-overflow: clip;} +#kanbanList .kanban-card {display: grid;} +#kanbanList .kanban-card > .title {white-space: nowrap; overflow: hidden; text-overflow: ellipsis;} #kanbanList .kanban-card.has-progress {padding-right: 40px; position: relative;} #kanbanList .kanban-card.has-progress > .progress-pie {position: absolute; right: 7px; top: 7px} #kanbanList .kanban-card.has-left-border {border-left: 2px solid #838a9d;} @@ -42,7 +43,7 @@ #kanbanList .kanban-col[data-type="unclosedProduct"] .kanban-card > .title {white-space: normal; line-height: 1;} #kanbanList .kanban-col[data-type="normalRelease"] .kanban-card > .title {display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center;} -#kanbanList .kanban-col[data-type="normalRelease"] .kanban-card > .title > .text {display: block; white-space: nowrap; text-overflow: clip; overflow: hidden;} +#kanbanList .kanban-col[data-type="normalRelease"] .kanban-card > .title > .text {display: block; white-space: nowrap; text-overflow: ellipsis; overflow: hidden;} #kanbanList .kanban-col[data-type="normalRelease"] .kanban-card > .title.has-icon > .text {margin-right: 5px; max-width: calc(100% - 20px);} #kanbanList .no-flex .kanban-col[data-type="normalRelease"] .kanban-card > .title {display: block; height: 38px;} #kanbanList .no-flex .kanban-col[data-type="normalRelease"] .kanban-card > .title > .text {display: inline-block;}