mirror of
https://github.com/wekan/wekan.git
synced 2026-02-17 13:38:07 +01:00
Yet another iteration on the user interface
* Automatically display the overlay when the card details is opened (previously we waited for the mouse to enter the card details panel) * Improve the design of the minicards badges * Change the minicard background when it is hovered or selected * Removes unimplemented features links from the UI * Fix the board canvas position when the sidebar is open (was hidden behind) Fixes #215
This commit is contained in:
parent
5eb67e803a
commit
91cfcf7b12
11 changed files with 53 additions and 43 deletions
|
|
@ -37,7 +37,7 @@ Template.createLabelPopup.helpers({
|
|||
// is not already used in the board (although it's not a problem if two
|
||||
// labels have the same color).
|
||||
defaultColor: function() {
|
||||
var labels = this.labels || this.card.board().labels;
|
||||
var labels = Boards.findOne(Session.get('currentBoard')).labels;
|
||||
var usedColors = _.pluck(labels, 'color');
|
||||
var availableColors = _.difference(labelColors, usedColors);
|
||||
return availableColors.length > 1 ? availableColors[0] : labelColors[0];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue