Fix spacing of new kanban cards made with enter

This commit is contained in:
David Benque 2023-04-24 12:29:36 +01:00
parent 333c4f4bf5
commit 3b406510df
2 changed files with 2 additions and 4 deletions

View File

@ -295,9 +295,6 @@
font-size: 12px;
}
}
&.new-item {
padding: 10px;
}
.kanban-item-text {
.tools_unselectable();
cursor: text;

View File

@ -810,10 +810,11 @@ define([
var isTop = $el.attr('data-top');
var boardId = $el.closest('.kanban-board').attr("data-id");
var $item = $('<div>', {'class': 'kanban-item new-item'});
var $text = $('<div>', {'class': 'kanban-item-text'}).appendTo($item);
if (isTop) {
$item.addClass('item-top');
}
var $input = getInput().val(name).appendTo($item);
var $input = getInput().val(name).appendTo($text);
kanban.addForm(boardId, $item[0], isTop);
$input.focus();
setTimeout(function () {