* optimize UI for common kanban.
This commit is contained in:
@@ -28,7 +28,7 @@
|
||||
.region .kanban .form-actions .btn {margin-right: 10px; min-width: 50px;}
|
||||
|
||||
.region .kanban-board + .kanban-board {margin-top: 20px;}
|
||||
.region .kanban-board > .kanban-header > .kanban-group-header {padding: 8px 2px; width: 20px;}
|
||||
.region .kanban-board > .kanban-header > .kanban-group-header {padding: 7px 0; width: 20px; text-align: center;}
|
||||
.region .kanban-board > .kanban-header > .kanban-group-header:hover {cursor: move;}
|
||||
.region .kanban-board.sort > .kanban-header {padding-left: 0;}
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
.region .kanban-header-col > .title > .count {opacity: .5; font-weight: bold; color: #8b91a2;}
|
||||
.region .kanban-header-col > .title > .error {color: #333333; padding-left: 2px; font-size: 10px; padding-top: 1px; padding-right: 2px;}
|
||||
.kanban-affixed .kanban-header-col > .title > .text {color: #fff!important}
|
||||
.region .kanban-header-col > .actions {position: relative; right: -5px;}
|
||||
.region .kanban-header-col > .actions {position: relative;}
|
||||
.region .kanban-header-parent-col > .actions {position: absolute; right: 0px;}
|
||||
.region .kanban-header-sub-cols .actions {position: absolute; right: 0px;}
|
||||
|
||||
@@ -56,8 +56,6 @@
|
||||
.region .kanban-lane-col {max-height: unset !important; overflow: auto; position: relative;}
|
||||
.region .kanban-lane-col.has-scrollbar > .kanban-lane-actions {position: absolute; background-color: inherit; bottom: 0; left: 0; right: 0;}
|
||||
|
||||
.region .kanban-lane-items {overflow: overlay !important; padding-bottom: 10px;}
|
||||
|
||||
.kanban-item {position: relative}
|
||||
.kanban-item > .kanban-card > .title {display: block; line-height: 18px;}
|
||||
.kanban-item > .kanban-card > .title:hover {color: #2272eb}
|
||||
@@ -100,8 +98,14 @@
|
||||
.kanban-col[data-type=ADD] {display: none;}
|
||||
.kanban-col[data-type=EMPTY] {display: none;}
|
||||
.kanban-col {padding-right: 0px !important;}
|
||||
.kanban-col.drag-shadow {background-color: #ededed !important; border-color: #ededed!important; box-shadow: 0 4px 10px 0 rgb(0,0,0, 0.05), 0 4px 20px 0 rgb(0,0,0, .3); min-height: 30px!important;}
|
||||
.kanban-col.drag-shadow .kanban-header-col {min-height: 30px!important;}
|
||||
.kanban-header-has-parent .kanban-header-cols > .kanban-col.drag-shadow,
|
||||
.kanban-col.kanban-header-parent-col.drag-shadow {min-height: 64px!important;}
|
||||
.kanban-col.drag-shadow > .actions {visibility: hidden!important;}
|
||||
.kanban-item .title {padding-right: 10px;}
|
||||
.gray .actions {display:none;}
|
||||
.kanban-cols-sorting .kanban-item {visibility: hidden!important;}
|
||||
|
||||
.kanban-card .header .executionName {display: flex; width: 100%; float: left;}
|
||||
.kanban-card .header .executionName .title {padding-right: 0px; margin-right: 5px; overflow: hidden; white-space: nowrap;}
|
||||
|
||||
@@ -40,7 +40,7 @@ function fullScreen()
|
||||
$('.action').hide();
|
||||
$('.kanban-group-header').hide();
|
||||
$(".title").attr("disabled", true).css("pointer-events", "none");
|
||||
$('#kanban').sortable('destroy');
|
||||
window.sortableDisabled = true;
|
||||
$.cookie('isFullScreen', 1);
|
||||
};
|
||||
|
||||
@@ -82,7 +82,7 @@ function exitFullScreen()
|
||||
$('.action').show();
|
||||
$('.kanban-group-header').show();
|
||||
$(".title").attr("disabled", false).css("pointer-events", "auto");
|
||||
initSortable();
|
||||
window.sortableDisabled = false;
|
||||
$.cookie('isFullScreen', 0);
|
||||
}
|
||||
|
||||
@@ -143,7 +143,7 @@ function renderHeaderCol($column, column, $header, kanbanData)
|
||||
var $actions = $column.children('.actions');
|
||||
if(column.parent != -1)
|
||||
{
|
||||
addItemBtn = ['<a data-contextmenu="columnCreate" data-action="addItem" data-column="' + column.id + '" data-lane="' + laneID + '" class="text-primary">', '<i class="icon icon-expand-alt"></i>', '</a>'].join('');
|
||||
addItemBtn = ['<button data-contextmenu="columnCreate" data-action="addItem" data-column="' + column.id + '" data-lane="' + laneID + '" class="btn btn-link">', '<i class="icon icon-expand-alt text-primary"></i>', '</button>'].join('');
|
||||
}
|
||||
|
||||
var moreAction = ' <button class="btn btn-link action" title="' + kanbanLang.moreAction + '" data-contextmenu="column" data-column="' + column.id + '"><i class="icon icon-ellipsis-v"></i></button>';
|
||||
@@ -1410,6 +1410,9 @@ function initSortable()
|
||||
return $parent.children('.kanban-item');
|
||||
}
|
||||
},
|
||||
before: function() {
|
||||
return !window.sortableDisabled;
|
||||
},
|
||||
start: function(e)
|
||||
{
|
||||
if(sortType == 'region')
|
||||
@@ -1426,14 +1429,14 @@ function initSortable()
|
||||
}
|
||||
else if(sortType === 'column')
|
||||
{
|
||||
$('.kanban-item').addClass('hidden');
|
||||
e.element.closest('.kanban-board').addClass('kanban-cols-sorting');
|
||||
}
|
||||
|
||||
else if(sortType == 'card')
|
||||
{
|
||||
oldLaneID = e.element.closest('.kanban-lane').data('id');
|
||||
oldColID = e.element.closest('.kanban-col').data('id');
|
||||
}
|
||||
$('#kanban').attr('data-sort-by', sortType);
|
||||
},
|
||||
finish: function(e)
|
||||
{
|
||||
@@ -1514,12 +1517,12 @@ function initSortable()
|
||||
{
|
||||
updateRegion(regionID, response[regionID]);
|
||||
}
|
||||
$('.kanban-item').removeClass('hidden');
|
||||
});
|
||||
},
|
||||
always: function(e)
|
||||
{
|
||||
if(sortType == 'lane') $cards.show();
|
||||
$('#kanban').find('.kanban-cols-sorting').removeClass('kanban-cols-sorting');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+6
-6
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user