diff --git a/css/style.scss b/css/style.scss index eb4961204..296ee88c9 100644 --- a/css/style.scss +++ b/css/style.scss @@ -57,7 +57,9 @@ input.input-inline { border-radius: 0; } - +#app img { + box-sizing: content-box; +} #searchbox { display: flex !important; @@ -713,7 +715,7 @@ input.input-inline { .assigned-user { position: relative; - .avatardiv { + .avatardiv-container { margin-right: 5px; } .icon-delete { @@ -929,7 +931,7 @@ input.input-inline { #assigned-users { display: flex; - .avatardiv { + .avatardiv-container { margin: 6px; } } @@ -996,6 +998,10 @@ input.input-inline { } } +.avatardiv-container { + position: relative; +} + #board-detail-labels { ul li { input { diff --git a/js/directive/avatar.js b/js/directive/avatar.js index 85a253a26..fde199ce1 100644 --- a/js/directive/avatar.js +++ b/js/directive/avatar.js @@ -26,11 +26,12 @@ app.directive('avatar', function() { restrict: 'A', scope: true, link: function(scope, element, attr){ - attr.$observe('displayname', function(value){ - if(value!==undefined) { - $(element).avatar(value, 32); - } - }); + var value = attr.user; + $(element).wrap('
'); + if(attr.contactsmenu && oc_current_user !== value) { + $(element).contactsMenu(value, 0, $(element).parent()); + } + $(element).avatar(value, 32, false, false, false, attr.displayname); } }; }); \ No newline at end of file diff --git a/templates/part.board.mainView.php b/templates/part.board.mainView.php index 079006181..823527d11 100644 --- a/templates/part.board.mainView.php +++ b/templates/part.board.mainView.php @@ -82,7 +82,7 @@