summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2017-11-27 12:19:21 +0100
committerGitHub <noreply@github.com>2017-11-27 12:19:21 +0100
commit7bb42438fa44a663934103ef2e83a9692516e165 (patch)
treeb9b7b4e6e9ad1d2afc2ea975fb02d17d10a20d4f /apps
parentc5446ebd9a60bac93c2d31d583ae14f841393ef0 (diff)
parent9bb2bb7870bf1f8715193c4d90d636e08faa7afd (diff)
downloadnextcloud-server-7bb42438fa44a663934103ef2e83a9692516e165.tar.gz
nextcloud-server-7bb42438fa44a663934103ef2e83a9692516e165.zip
Merge pull request #7280 from nextcloud/fix-working-icon-position-when-sending-or-deleting-a-comment
Fix working icon position when sending or deleting a comment
Diffstat (limited to 'apps')
-rw-r--r--apps/comments/css/comments.css17
-rw-r--r--apps/comments/js/commentstabview.js3
2 files changed, 18 insertions, 2 deletions
diff --git a/apps/comments/css/comments.css b/apps/comments/css/comments.css
index 89b3bc37d50..ccfad1d39f1 100644
--- a/apps/comments/css/comments.css
+++ b/apps/comments/css/comments.css
@@ -42,6 +42,20 @@
#commentsTabView .newCommentForm .submitLoading {
background-position: left;
+
+ /* Match rules for '#commentsTabView .newCommentForm .submit' to place the
+ loading icon at the same position as the confirm icon */
+ position: absolute;
+ bottom: 0px;
+ right: 8px;
+ width: 30px;
+ margin: 0;
+ padding: 7px 9px;
+
+ /* Match rules for 'input[type="submit"]' to place the loading icon at the
+ same position as the confirm icon */
+ min-height: 34px;
+ box-sizing: border-box;
}
#commentsTabView .newCommentForm .cancel {
@@ -168,7 +182,8 @@
opacity: 1;
}
-#commentsTabView .comment .action.delete {
+#commentsTabView .comment .action.delete,
+#commentsTabView .comment .deleteLoading {
position: absolute;
right: 0;
}
diff --git a/apps/comments/js/commentstabview.js b/apps/comments/js/commentstabview.js
index 0d2d0b0b81f..d64b70494fd 100644
--- a/apps/comments/js/commentstabview.js
+++ b/apps/comments/js/commentstabview.js
@@ -27,6 +27,7 @@
' <div class="author">{{actorDisplayName}}</div>' +
'{{#if isEditMode}}' +
' <a href="#" class="action delete icon icon-delete has-tooltip" title="{{deleteTooltip}}"></a>' +
+ ' <div class="deleteLoading icon-loading-small hidden"></div>'+
'{{/if}}' +
' </div>' +
' <form class="newCommentForm">' +
@@ -543,7 +544,7 @@
ev.preventDefault();
var $comment = $(ev.target).closest('.comment');
var commentId = $comment.data('id');
- var $loading = $comment.find('.submitLoading');
+ var $loading = $comment.find('.deleteLoading');
var $commentField = $comment.find('.message');
var $submit = $comment.find('.submit');
var $cancel = $comment.find('.cancel');