diff options
author | Maxime Quandalle <maxime@quandalle.com> | 2015-08-28 05:11:45 +0200 |
---|---|---|
committer | Maxime Quandalle <maxime@quandalle.com> | 2015-08-28 06:07:21 +0200 |
commit | 91cfcf7b12b5e7c137c2e765b2c378dde6b82966 (patch) | |
tree | fc0314bc81f6e12361858994a22b8dd66cc56098 /client/components/boards/boardBody.js | |
parent | 5eb67e803af0fd674f85a80e47913fa13fed24b2 (diff) | |
download | wekan-91cfcf7b12b5e7c137c2e765b2c378dde6b82966.tar.gz wekan-91cfcf7b12b5e7c137c2e765b2c378dde6b82966.tar.bz2 wekan-91cfcf7b12b5e7c137c2e765b2c378dde6b82966.zip |
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
Diffstat (limited to 'client/components/boards/boardBody.js')
-rw-r--r-- | client/components/boards/boardBody.js | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/client/components/boards/boardBody.js b/client/components/boards/boardBody.js index 8a1941d6..669b5b4b 100644 --- a/client/components/boards/boardBody.js +++ b/client/components/boards/boardBody.js @@ -22,6 +22,9 @@ BlazeComponent.extendComponent({ self._isDragging = false; self._lastDragPositionX = 0; + + // Used to set the overlay + self.mouseHasEnterCardDetails = false; }, openNewListForm: function() { @@ -57,18 +60,14 @@ BlazeComponent.extendComponent({ return currentCard && currentCard.listId === listId; }, - sidebarSize: function() { - var sidebar = this.componentChildren('sidebar')[0]; - if (sidebar && sidebar.isOpen()) - return 'next-sidebar'; - }, - events: function() { return [{ // XXX The board-overlay div should probably be moved to the parent // component. 'mouseenter .board-overlay': function() { - this.showOverlay.set(false); + if (this.mouseHasEnterCardDetails) { + this.showOverlay.set(false); + } }, // Click-and-drag action |