From 91cfcf7b12b5e7c137c2e765b2c378dde6b82966 Mon Sep 17 00:00:00 2001 From: Maxime Quandalle Date: Fri, 28 Aug 2015 05:11:45 +0200 Subject: 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 --- client/components/boards/boardBody.js | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'client/components/boards/boardBody.js') 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 -- cgit v1.2.3-1-g7c22