This commit is contained in:
tianshujie98
2021-08-13 11:35:00 +08:00
2 changed files with 4 additions and 11 deletions
+2
View File
@@ -12,6 +12,8 @@
#kanban {overflow-y: auto;}
#kanban tbody > tr > td {line-height: 24px;}
#kanban thead > tr > th:not(:last-child) {border-right: 2px solid #efefef;}
#kanban tbody > tr > td.color-my {background-color: #ECF4FD;}
#kanban tbody > tr > td.color-project {background-color: #F5F5F5;}
.s-doing .table-row .table-col:last-child, .c-progress {width: 30px;}
.table-row .table-col:first-child {overflow: hidden; text-overflow: ellipsis; white-space: nowrap;}
+2 -11
View File
@@ -30,7 +30,7 @@
<?php $rowIndex = 0;?>
<?php foreach($kanbanGroup as $projectID => $executionList):?>
<tr>
<td class='board-project color-<?php echo $rowIndex;?>'>
<td class="board-project <?php echo empty($projectID) ? 'color-my' : 'color-project';?>">
<div data-id='<?php echo $projectID;?>'>
<div class='text-center'>
<?php $projectTitle = empty($projectID) ? $lang->execution->myExecutions : zget($projects, $projectID);?>
@@ -38,7 +38,7 @@
</div>
</div>
</td>
<td class="c-boards no-padding text-left color-<?php echo $rowIndex;?>" colspan='4'>
<td class="c-boards no-padding text-left <?php echo empty($projectID) ? 'color-my' : 'color-project';?>" colspan='4'>
<div class="boards-wrapper">
<div class="boards">
<?php foreach($lang->execution->kanbanColType as $colStatus => $colName):?>
@@ -88,15 +88,6 @@
</div>
<style>
<?php
$boardColorList = explode(',', $lang->execution->boardColorList);
$colorCounts = count($boardColorList);
$colorIndex = 0;
for($i = 0; $i <= $rowIndex; $i++)
{
$colorIndex = $i % $colorCounts == 0 ? 0 : ++$colorIndex;
echo "#kanban tbody > tr > td.color-$i {background-color: {$boardColorList[$colorIndex]};}";
}
foreach(array_keys($lang->execution->kanbanColType) as $status)
{
echo ".s-$status .board-item {border-left: 3px solid {$lang->execution->statusColorList[$status]};}";