Fix kanban edit modal issues

This commit is contained in:
yflory
2020-03-09 14:58:49 +01:00
parent 6d0154fb4d
commit 1402dc7170
2 changed files with 7 additions and 0 deletions

View File

@@ -94,6 +94,11 @@
} }
} }
.cp-kanban-edit-modal {
display: flex;
flex-flow: column;
overflow: hidden;
}
#cp-kanban-edit-body { #cp-kanban-edit-body {
border: 1px solid @colortheme_modal-input; border: 1px solid @colortheme_modal-input;
.CodeMirror { .CodeMirror {

View File

@@ -240,6 +240,7 @@ define([
$colors.find('.cp-kanban-palette').removeClass('fa-check'); $colors.find('.cp-kanban-palette').removeClass('fa-check');
var $col = $colors.find('.cp-kanban-palette-'+(color || 'nocolor')); var $col = $colors.find('.cp-kanban-palette-'+(color || 'nocolor'));
$col.addClass('fa-check'); $col.addClass('fa-check');
selectedColor = color;
} }
}; };
@@ -292,6 +293,7 @@ define([
var modal = UI.dialog.customModal(content, { var modal = UI.dialog.customModal(content, {
buttons: button buttons: button
}); });
modal.classList.add('cp-kanban-edit-modal');
onRemoteChange.reg(function () { onRemoteChange.reg(function () {
if (isBoard) { if (isBoard) {