Fix UI issues in kanban

pull/1/head
yflory 4 years ago
parent 7245123061
commit d285c6b791

@ -141,6 +141,8 @@
.kanban-edit-item {
padding: 5px;
border: 0;
background: transparent;
align-self: flex-start;
}
@ -344,7 +346,7 @@
margin-left: 10px;
display: flex;
flex-wrap: wrap;
&:not(:empty) {
&:not(.cp-empty) {
margin-top: -5px;
}
em {

@ -503,7 +503,7 @@ define([
$container.find('.kanban-item').each(function (i, el) {
var itemId = $(el).attr('data-eid');
$('<button>', {
'class': 'kanban-edit-item btn btn-default fa fa-pencil',
'class': 'kanban-edit-item fa fa-pencil',
'alt': Messages.kanban_editCard,
}).click(function (e) {
getItemEditModal(framework, kanban, itemId);
@ -513,7 +513,7 @@ define([
$container.find('.kanban-board').each(function (i, el) {
var itemId = $(el).attr('data-id');
$('<button>', {
'class': 'kanban-edit-item btn btn-default fa fa-pencil',
'class': 'kanban-edit-item fa fa-pencil',
'alt': Messages.kanban_editBoard,
}).click(function (e) {
getBoardEditModal(framework, kanban, itemId);
@ -913,7 +913,9 @@ define([
var redrawList = function (allTags) {
if (!Array.isArray(allTags)) { return; }
$list.empty();
$list.removeClass('cp-empty');
if (!allTags.length) {
$list.addClass('cp-empty');
$list.append(h('em', Messages.kanban_noTags));
return;
}

Loading…
Cancel
Save