Fix popovermenus on 13

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2017-11-08 21:48:37 +01:00
committed by Julius Härtl
parent 081b3520a0
commit 066f67ef7b
3 changed files with 4 additions and 15 deletions

View File

@@ -496,8 +496,6 @@ input.input-inline {
z-index: 999; z-index: 999;
opacity: 1; opacity: 1;
display: block; display: block;
margin-top: 25px;
margin-right: 0px;
&.hidden { &.hidden {
display: none; display: none;
@@ -834,6 +832,7 @@ input.input-inline {
button { button {
opacity: 0.5; opacity: 0.5;
padding: 22px;
} }
&:hover button { &:hover button {
@@ -852,10 +851,6 @@ input.input-inline {
opacity: 0.5; opacity: 0.5;
} }
.popovermenu {
margin-top: 5px;
}
.board-edit-controls { .board-edit-controls {
display: flex; display: flex;
} }

View File

@@ -28,13 +28,7 @@ app.directive('appPopoverMenuUtils', function () {
var menu = elm.find('.popovermenu'); var menu = elm.find('.popovermenu');
var button = elm.find('button'); var button = elm.find('button');
button.click(function (e) { button.click(function (e) {
$('.popovermenu').addClass('hidden');
menu.toggleClass('hidden'); menu.toggleClass('hidden');
if(!menu.hasClass('hidden')) {
button.css('display','block');
} else {
button.css('display','');
}
e.stopPropagation(); e.stopPropagation();
}); });
scope.$on('documentClicked', function (scope, event) { scope.$on('documentClicked', function (scope, event) {
@@ -42,7 +36,6 @@ app.directive('appPopoverMenuUtils', function () {
if (event.target !== button && !$(event.target).hasClass('no-close')) { if (event.target !== button && !$(event.target).hasClass('no-close')) {
menu.addClass('hidden'); menu.addClass('hidden');
} }
button.css('display','');
}); });
} }
}; };

View File

@@ -46,9 +46,10 @@
</div> </div>
</td> </td>
<td> <td>
<div class="hint"></div>
<div class="app-popover-menu-utils" ng-if="b.deletedAt == 0" ng-show="!b.status.edit"> <div class="app-popover-menu-utils" ng-if="b.deletedAt == 0" ng-show="!b.status.edit">
<button class="icon icon-more button-inline" title="<?php p($l->t('More actions')); ?>"><span class="hidden-visually"><?php p($l->t('More actions')); ?></span></button> <button class="icon icon-more button-inline" title="<?php p($l->t('More actions')); ?>">
<span class="hidden-visually"><?php p($l->t('More actions')); ?></span>
</button>
<div class="popovermenu bubble hidden"> <div class="popovermenu bubble hidden">
<ul> <ul>
<li ng-click="boardUpdateBegin(b); b.status.edit = true"> <li ng-click="boardUpdateBegin(b); b.status.edit = true">