From c9f1e15c2faaf3433cd873e2db5d75509dcb2284 Mon Sep 17 00:00:00 2001
From: leiyong <1549684884@qq.com>
Date: Fri, 17 Jun 2022 05:20:32 +0000
Subject: [PATCH 1/2] * Adjust CSS.
---
module/task/view/view.html.php | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/module/task/view/view.html.php b/module/task/view/view.html.php
index e7a303b8ea..9393cd8ea1 100644
--- a/module/task/view/view.html.php
+++ b/module/task/view/view.html.php
@@ -108,15 +108,15 @@
- | task->id;?> |
- task->lblPri;?> |
+ task->id;?> |
+ task->lblPri;?> |
task->name;?> |
- task->deadline;?> |
- task->assignedTo;?> |
- task->status;?> |
- task->consumedAB . $lang->task->lblHour;?> |
- task->leftAB . $lang->task->lblHour;?> |
- actions;?> |
+ task->deadline;?> |
+ task->assignedTo;?> |
+ task->status;?> |
+ task->consumedAB . $lang->task->lblHour;?> |
+ task->leftAB . $lang->task->lblHour;?> |
+ actions;?> |
From eb6e217f3cf1748a4e5932c3a18207d30e32a5b0 Mon Sep 17 00:00:00 2001
From: leiyong <1549684884@qq.com>
Date: Fri, 17 Jun 2022 05:21:40 +0000
Subject: [PATCH 2/2] * Adjust CSS.
---
module/kanban/js/view.js | 18 ++++++++++--------
module/task/css/view.css | 9 +++++++++
2 files changed, 19 insertions(+), 8 deletions(-)
diff --git a/module/kanban/js/view.js b/module/kanban/js/view.js
index b38d8d87a3..4707cb8abb 100644
--- a/module/kanban/js/view.js
+++ b/module/kanban/js/view.js
@@ -799,7 +799,7 @@ function moveCard(cardID, fromColID, toColID, fromLaneID, toLaneID, kanbanID, re
$('.kanban-group-header').hide();
$(".title").attr("disabled", true).css("pointer-events", "none");
}
- setTooltip();
+ setToolTip();
},
error: function(xhr, status, error)
{
@@ -1228,10 +1228,7 @@ function createColumnMenu(options)
if(privs.includes('copyColumn')) items.push({label: kanbanLang.copyColumn, icon: 'copy', url: createLink('kanban', 'copyColumn', 'columnID=' + column.id), className: 'iframe', attrs: {'data-toggle': 'modal'}});
var otherActions = ((privs.includes('archiveColumn') && kanban.archived == '1') || privs.includes('deleteColumn')) ? true : false;
- if(columnActions && otherActions)
- {
- items.push({type: 'divider'});
- }
+ if(columnActions && otherActions) items.push({type: 'divider'});
if(privs.includes('archiveColumn') && kanban.archived == '1') items.push({label: kanbanLang.archiveColumn, icon: 'card-archive', url: createLink('kanban', 'archiveColumn', 'columnID=' + column.id), attrs: {'target': 'hiddenwin'}});
if(privs.includes('deleteColumn')) items.push({label: kanbanLang.deleteColumn, icon: 'trash', url: createLink('kanban', 'deleteColumn', 'columnID=' + column.id), attrs: {'target': 'hiddenwin'}});
@@ -1486,7 +1483,7 @@ $(function()
resetRegionHeight('open');
if(!CRKanban && kanbanInfo.status == 'closed') $('.kanban-col.kanban-header-col').css('padding', '0px 0px 0px 0px');
- setTooltip();
+ setToolTip();
});
function initSortable()
@@ -1700,7 +1697,6 @@ function resetRegionHeight(fold)
{
$('.region').css('height', regionHeaderHeight);
}
-
}
$(document).on('click', '.dropdown-menu', function()
@@ -1708,7 +1704,13 @@ $(document).on('click', '.dropdown-menu', function()
$.zui.ContextMenu.hide();
});
-function setTooltip()
+/**
+ * Alerts for exceeding the limit.
+ *
+ * @access public
+ * @return void
+ */
+function setToolTip()
{
$('[data-toggle="tooltip"]').tooltip({container: 'body'});
}
diff --git a/module/task/css/view.css b/module/task/css/view.css
index 4ca96672a0..06e13d58a9 100644
--- a/module/task/css/view.css
+++ b/module/task/css/view.css
@@ -9,3 +9,12 @@
#assignedTo a {border-color: transparent;}
#assignedTo a:hover {border-color: rgba(0,0,0,.2);}
#childrenTable tbody > tr:nth-child(odd) {background-color: #f5f5f5;}
+
+.c-id {width: 50px;}
+.c-pri {width: 40px;}
+.c-deadline {width: 100px;}
+.c-assignedTo {width: 120px;}
+.c-status {width: 80px;}
+.c-consumedAB {width: 60px;}
+.c-leftAB {width: 60px;}
+.c-actions {width: 175px;}