diff --git a/css/style.scss b/css/style.scss index ef5dcf09a..64dee423c 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 { @@ -937,7 +939,7 @@ input.input-inline { #assigned-users { display: flex; - .avatardiv { + .avatardiv-container { margin: 6px; } } @@ -1004,6 +1006,10 @@ input.input-inline { } } +.avatardiv-container { + position: relative; +} + #board-detail-labels { ul li { input { diff --git a/js/app/Run.js b/js/app/Run.js index 3c80f44d9..87e342475 100644 --- a/js/app/Run.js +++ b/js/app/Run.js @@ -74,4 +74,9 @@ app.run(function ($document, $rootScope, $transitions, BoardService) { } } }); + // Select all elements with data-toggle="tooltips" in the document + $('body').tooltip({ + selector: '[data-toggle="tooltip"]' + }); + }); 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 577112dd1..823527d11 100644 --- a/templates/part.board.mainView.php +++ b/templates/part.board.mainView.php @@ -82,7 +82,7 @@