From 49167ccaa91376bf70c400013641f76d1164950e Mon Sep 17 00:00:00 2001 From: Maxime Quandalle Date: Sat, 6 Jun 2015 12:07:52 +0200 Subject: Improve the card details pane overlay interactions --- client/components/boards/boardBody.js | 10 ++++++++++ client/components/boards/boardBody.styl | 1 + 2 files changed, 11 insertions(+) (limited to 'client/components/boards') diff --git a/client/components/boards/boardBody.js b/client/components/boards/boardBody.js index 6de7fba6..e1b39ce8 100644 --- a/client/components/boards/boardBody.js +++ b/client/components/boards/boardBody.js @@ -119,6 +119,16 @@ BlazeComponent.extendComponent({ 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); + } + }]; } }).register('boardComponent'); diff --git a/client/components/boards/boardBody.styl b/client/components/boards/boardBody.styl index 68034a16..d64e1a69 100644 --- a/client/components/boards/boardBody.styl +++ b/client/components/boards/boardBody.styl @@ -19,6 +19,7 @@ position() .board-overlay position: cover + top: -100px background: black opacity: 0.33 animation: fadeIn 0.2s -- cgit v1.2.3-1-g7c22