From c9fc80ef4d34976cabb35d964ac30334f3f041d3 Mon Sep 17 00:00:00 2001 From: liumengyi Date: Thu, 4 Aug 2022 15:50:40 +0800 Subject: [PATCH] * Fix bug #26025. --- module/kanban/view/viewarchivedcard.html.php | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/module/kanban/view/viewarchivedcard.html.php b/module/kanban/view/viewarchivedcard.html.php index d12d129862..2c4c142e36 100644 --- a/module/kanban/view/viewarchivedcard.html.php +++ b/module/kanban/view/viewarchivedcard.html.php @@ -32,7 +32,10 @@ #archivedCards .info > .users > span:before {left: -4px; content: ''; display: block; position: absolute; width: 2px; height: 2px; background-color: #8990a2; top: 0px; border-radius: 50%;} #archivedCards .info > .users > span:after {right: -4px; content: ''; display: block; position: absolute; width: 2px; height: 2px; background-color: #8990a2; top: 0px; border-radius: 50%;} #archivedCards .info > .users .avatar {display: inline-block; position: relative; border-radius: 50%; top: -5px; margin: 5px; right: -7px; margin-left: -4px;} -#archivedCards .cardName {word-wrap: break-word;} +#archivedCards .cardName {word-wrap: break-word; word-break: break-all;} +#archivedCards .executionName {display: flex; width: 100%;} +#archivedCards .executionName a, #archivedCards .executionName div {overflow: hidden; margin-right: 5px; overflow: hidden; white-space: nowrap;} +#archivedCards .executionName .delayed {flex: none;} #archivedCards .card-item .icon {margin-right:2px;} #archivedCards .card-item .red {background-color: #b10b0b;} #archivedCards .card-item .yellow {background-color: #cfa227;} @@ -89,21 +92,20 @@ js::set('systemMode', $this->config->systemMode); color == '#2a5f29') $labelColor = 'background-color: #FFFFFF; color: #2a5f29'; + $finishLabel = $card->status == 'done' ? "
{$lang->kanban->finished}
" : ''; ?>
- status == 'done'):?> -
kanban->finished;?>
- fromType)):?> - createLink('kanban', 'viewCard', "cardID=$card->id", '', true), $card->name, '', "class='cardName iframe' data-toggle='modal' data-width='80%' title='$card->name'");?> + " . html::a($this->createLink('kanban', 'viewCard', "cardID=$card->id", '', true), $finishLabel . $card->name, '', "class='iframe' data-toggle='modal' data-width='80%' title='$card->name'") . '
';?>
pri;?> estimate and $card->estimate != 0) echo "{$card->estimate}h";?> title) ? $card->title : $card->name; - if(common::hasPriv($card->fromType, 'view')) echo html::a($this->createLink($card->fromType, 'view', "id=$card->fromID"), $name, '', "class='cardName' title='$name'"); - if(!common::hasPriv($card->fromType, 'view')) echo "
$name
"; + $delayed = ($card->fromType == 'execution' and !empty($card->delay)) ? "{$lang->execution->delayed}" : ''; + if(common::hasPriv($card->fromType, 'view')) echo "
" . html::a($this->createLink($card->fromType, 'view', "id=$card->fromID"), $name, '', " title='$name'") . "$delayed
"; + if(!common::hasPriv($card->fromType, 'view')) echo "
$name
$delayed
"; if($card->fromType == 'productplan' or $card->fromType == 'build') { echo "
$card->desc
";