diff --git a/css/style.scss b/css/style.scss index 57887e77f..2b8f9caac 100644 --- a/css/style.scss +++ b/css/style.scss @@ -941,25 +941,59 @@ input.input-inline { .activity-icon { opacity: 1 !important; + .avatardiv-container { + top: -4px; + left: -7px; + margin-right: 5px; + img { + max-width: 24px; + max-height: 24px; + } + } } +.activitysubject.commentAuthor { + margin-left: 26px; + margin-right: 0; + margin-top: 10px; +} +.activityTabView { + .activity { + margin-bottom: 20px; + } + .activitytime { + margin: 0 !important; + } +} .activitysubject .app-popover-menu-utils { display: inline-block; - position: absolute; - top: -5px; - right: 0; a { font-weight: normal; } button { opacity: .5; - padding: 14px 19px; + padding: 7px; + margin-left: 10px; } } -#commentsTabView .comment { - position: relative; - padding: 0 0 15px; +#commentsTabView { + .newCommentRow .avatardiv-container { + left: -7px; + } + .comment { + position: relative; + padding: 0 0 15px; + + .avatardiv { + width: 24px; + height: 24px; + line-height: 24px; + } + } + .newCommentForm { + margin-left: 26px; + } } .card-attachments { diff --git a/js/controller/ActivityController.js b/js/controller/ActivityController.js index ad7c1f344..4208e702d 100644 --- a/js/controller/ActivityController.js +++ b/js/controller/ActivityController.js @@ -38,6 +38,8 @@ class ActivityController { }; this.$scope.newComment = ''; + this.currentUser = OC.getCurrentUser(); + const self = this; this.$scope.$watch(function () { return self.element.id; @@ -115,7 +117,7 @@ class ActivityController { var avatar = '' + '' + + 'ng-attr-displayname="' + _.escape(displayName) + '" ng-attr-contactsmenu="true">' + ''; var isCurrentUser = (uid === OC.getCurrentUser().uid); @@ -263,6 +265,9 @@ class ActivityController { return this.activityservice.runningNewer; } + t(text) { + return t('deck', text); + } } let activityComponent = { diff --git a/templates/part.card.activity.html b/templates/part.card.activity.html index 62a9a7a28..44e71a6b8 100644 --- a/templates/part.card.activity.html +++ b/templates/part.card.activity.html @@ -1,11 +1,11 @@