From c85a3d61daae76c457becdb9d81d9dd8e3250b7b Mon Sep 17 00:00:00 2001 From: Catouse Date: Thu, 20 Sep 2018 14:39:25 +0800 Subject: [PATCH] * change style of sub task toggle icon. --- module/project/css/common.css | 7 ++++--- module/task/model.php | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/module/project/css/common.css b/module/project/css/common.css index 9c9cb77ffd..78637fc62f 100644 --- a/module/project/css/common.css +++ b/module/project/css/common.css @@ -13,11 +13,12 @@ .table-children {border-left: 2px solid #cbd0db; border-right: 2px solid #cbd0db;} .table-children.table-child-top {border-top: 2px solid #cbd0db;} .table-children.table-child-bottom {border-bottom: 2px solid #cbd0db;} -.table td.has-child > .task-toggle {color: #838a9d; position: relative; top: -1px;} +.table td.has-child > a {max-width: 90%; max-width: calc(100% - 30px); display: inline-block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;} +.table td.has-child > .task-toggle {color: #838a9d; position: relative; top: 1px;} .table td.has-child > .task-toggle:hover {color: #006af1; cursor: pointer;} -.table td.has-child > .task-toggle > .icon {font-size: 16px; display: inline-block; transition: transform .2s;} +.table td.has-child > .task-toggle > .icon {font-size: 16px; display: inline-block; transition: transform .2s; -ms-transform:rotate(-90deg); -moz-transform:rotate(-90deg); -o-transform:rotate(-90deg); -webkit-transform:rotate(-90deg); transform: rotate(-90deg);} .table td.has-child > .task-toggle > .icon:before {text-align: left;} -.table td.has-child > .task-toggle.collapsed > .icon {transform: rotate(-90deg);} +.table td.has-child > .task-toggle.collapsed > .icon {-ms-transform:rotate(90deg); -moz-transform:rotate(90deg); -o-transform:rotate(90deg); -webkit-transform:rotate(90deg); transform: rotate(90deg);} .main-table tbody > tr.table-children > td:first-child::before {width: 3px;} @-moz-document url-prefix() {.main-table tbody > tr.table-children > td:first-child::before {width: 4px;}} diff --git a/module/task/model.php b/module/task/model.php index ff21c2d744..88a18319fd 100644 --- a/module/task/model.php +++ b/module/task/model.php @@ -2411,7 +2411,7 @@ class taskModel extends model if($child or !empty($task->parent)) echo '' . $this->lang->task->childrenAB . ' '; if(!empty($task->team)) echo '' . $this->lang->task->multipleAB . ' '; echo $canView ? html::a($taskLink, $task->name, null, "style='color: $task->color'") : "$task->name"; - if(!empty($task->children)) echo ''; + if(!empty($task->children)) echo ''; if($task->fromBug) echo html::a(helper::createLink('bug', 'view', "id=$task->fromBug"), "[BUG#$task->fromBug]", '_blank', "class='bug'"); break; case 'type':