* finish task #6668.

This commit is contained in:
wangyidong
2019-12-17 11:07:04 +08:00
parent 2f8beb146f
commit bf3a4ba42c
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -13,7 +13,7 @@
.table-children {border-left: 2px solid #cbd0db; border-right: 2px solid #cbd0db;}
.table tbody > tr.table-children.table-child-top {border-top: 2px solid #cbd0db;}
.table tbody > tr.table-children.table-child-bottom {border-bottom: 2px solid #cbd0db;}
.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 > a:not(.task-toggle) {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; -ms-transform:rotate(-90deg); -moz-transform:rotate(-90deg); -o-transform:rotate(-90deg); -webkit-transform:rotate(-90deg); transform: rotate(-90deg);}
+1
View File
@@ -4,6 +4,7 @@ $(function()
$('#taskList td.has-child .task-toggle').each(function()
{
$td = $(this).closest('td');
if($td.find('.label').length == 0) return false;
$td.find('a').eq(0).css('max-width', $td.width() - $td.find('.label').width() - 40);
});
});