From 066f67ef7bd8fd5b4f7d5d503ce616e3e5208a2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Wed, 8 Nov 2017 21:48:37 +0100 Subject: [PATCH] Fix popovermenus on 13 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- css/style.scss | 7 +------ js/directive/appPopoverMenuUtils.js | 7 ------- templates/part.boardlist.php | 5 +++-- 3 files changed, 4 insertions(+), 15 deletions(-) diff --git a/css/style.scss b/css/style.scss index 500c32aa6..7b18067d2 100644 --- a/css/style.scss +++ b/css/style.scss @@ -496,8 +496,6 @@ input.input-inline { z-index: 999; opacity: 1; display: block; - margin-top: 25px; - margin-right: 0px; &.hidden { display: none; @@ -834,6 +832,7 @@ input.input-inline { button { opacity: 0.5; + padding: 22px; } &:hover button { @@ -852,10 +851,6 @@ input.input-inline { opacity: 0.5; } - .popovermenu { - margin-top: 5px; - } - .board-edit-controls { display: flex; } diff --git a/js/directive/appPopoverMenuUtils.js b/js/directive/appPopoverMenuUtils.js index 2f47063a5..d466bd1d5 100644 --- a/js/directive/appPopoverMenuUtils.js +++ b/js/directive/appPopoverMenuUtils.js @@ -28,13 +28,7 @@ app.directive('appPopoverMenuUtils', function () { var menu = elm.find('.popovermenu'); var button = elm.find('button'); button.click(function (e) { - $('.popovermenu').addClass('hidden'); menu.toggleClass('hidden'); - if(!menu.hasClass('hidden')) { - button.css('display','block'); - } else { - button.css('display',''); - } e.stopPropagation(); }); scope.$on('documentClicked', function (scope, event) { @@ -42,7 +36,6 @@ app.directive('appPopoverMenuUtils', function () { if (event.target !== button && !$(event.target).hasClass('no-close')) { menu.addClass('hidden'); } - button.css('display',''); }); } }; diff --git a/templates/part.boardlist.php b/templates/part.boardlist.php index 23c7ad224..0a373449b 100644 --- a/templates/part.boardlist.php +++ b/templates/part.boardlist.php @@ -46,9 +46,10 @@ -
- +