From fe202a92b490404e3d8b7b8a2712e2e0a33a9851 Mon Sep 17 00:00:00 2001 From: yflory Date: Wed, 30 May 2018 15:00:26 +0200 Subject: [PATCH] Fix UI issues in kanban --- customize.dist/translations/messages.js | 2 +- www/kanban/app-kanban.less | 7 +++---- www/kanban/inner.js | 15 +++++++++------ www/kanban/jkanban.js | 10 ++++------ 4 files changed, 17 insertions(+), 17 deletions(-) diff --git a/customize.dist/translations/messages.js b/customize.dist/translations/messages.js index 225965b42..b61ae3d23 100644 --- a/customize.dist/translations/messages.js +++ b/customize.dist/translations/messages.js @@ -254,7 +254,7 @@ define(function () { out.kanban_item = "Item {0}"; // Item number for initial content out.kanban_todo = "To Do"; out.kanban_done = "Done"; - out.kanban_working = "Working"; + out.kanban_working = "In progress"; out.kanban_deleteBoard = "Are you sure you want to delete this board?"; out.kanban_addBoard = "Add a board"; out.kanban_removeItem = "Remove this item"; diff --git a/www/kanban/app-kanban.less b/www/kanban/app-kanban.less index 03b9267e5..ab49cfda5 100644 --- a/www/kanban/app-kanban.less +++ b/www/kanban/app-kanban.less @@ -48,12 +48,14 @@ display: flex; align-items: center; justify-content: space-between; + padding: 10px 5px 10px 10px; } .kanban-board { header { display: flex; align-items: center; + padding: 13px 10px; .kanban-title-board { flex: 1; margin-right: 10px; @@ -84,9 +86,8 @@ line-height: @button-size; text-align: center; background: @colortheme_kanban-bg; - font-weight: bold; align-self: flex-start; - font-size: 50px; + font-size: 30px; cursor: pointer; .tools_unselectable(); } @@ -108,8 +109,6 @@ line-height: 1; margin-bottom: 5px; margin-right: 5px; - font-weight: bold; - font-size: 1.2em; &:hover { background: transparent; } diff --git a/www/kanban/inner.js b/www/kanban/inner.js index be2906e87..b79b6e381 100644 --- a/www/kanban/inner.js +++ b/www/kanban/inner.js @@ -40,7 +40,7 @@ define([ return b.id === $(el.parentNode.parentNode).attr('data-id'); }); $('' headerBoard.appendChild(btn); __onButtonClickHandler(btn, board.id); @@ -348,8 +346,7 @@ var footerBoard = document.createElement('footer'); //add button var addBoardItem = document.createElement('button'); - $(addBoardItem).text("+") - $(addBoardItem).addClass("kanban-additem btn btn-default"); + $(addBoardItem).addClass("kanban-additem btn btn-default fa fa-plus"); footerBoard.appendChild(addBoardItem); __onAddItemClickHandler(addBoardItem); @@ -459,7 +456,7 @@ boardContainerOuter.appendChild(boardContainer); var addBoard = document.createElement('div'); addBoard.id = 'kanban-addboard'; - $(addBoard).text("+"); + addBoard.setAttribute('class', 'fa fa-plus'); boardContainerOuter.appendChild(addBoard); self.container = boardContainer; @@ -502,6 +499,7 @@ function __onAddItemClickHandler(nodeItem, clickfn) { nodeItem.addEventListener('click', function (e) { e.preventDefault; + e.stopPropagation(); self.options.addItemClick(this); if (typeof (this.clickfn) === 'function') this.clickfn(this);