Fix UI issues in kanban

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

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

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

Loading…
Cancel
Save