summaryrefslogtreecommitdiffstats
path: root/apps/comments
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2018-09-05 09:10:32 +0200
committerDaniel Calviño Sánchez <danxuliu@gmail.com>2018-09-05 18:35:37 +0200
commitdb1fce6a59e4e6aa8a192cfe76dfa6937ce16e8f (patch)
tree713e31f6cf1dc6917f845b04b3c971fb787d7068 /apps/comments
parentc9ce96ff054788f31d45d774dcfa008c0de095c5 (diff)
downloadnextcloud-server-db1fce6a59e4e6aa8a192cfe76dfa6937ce16e8f.tar.gz
nextcloud-server-db1fce6a59e4e6aa8a192cfe76dfa6937ce16e8f.zip
Remove space between avatar and user name
The avatar should be shown immediately after the avatar to be able to accurately define the space between them using only CSS rules. Note that in the case of the "atwho" menu it is not really needed, as a whitespace removal seems to be done automatically by the plugin, but it was modified for its displayed elements too for consistency. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'apps/comments')
-rw-r--r--apps/comments/js/commentstabview.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/comments/js/commentstabview.js b/apps/comments/js/commentstabview.js
index 11b33e9f0cc..6d4d5b2ca85 100644
--- a/apps/comments/js/commentstabview.js
+++ b/apps/comments/js/commentstabview.js
@@ -202,7 +202,7 @@
+ ' data-username="' + escapeHTML(item.id) + '"' // for avatars
+ ' data-user="' + escapeHTML(item.id) + '"' // for contactsmenu
+ ' data-user-display-name="' + escapeHTML(item.label) + '"></span>'
- + ' <strong>' + escapeHTML(item.label) + '</strong>'
+ + '<strong>' + escapeHTML(item.label) + '</strong>'
+ '</span></li>';
},
insertTpl: function (item) {
@@ -212,7 +212,7 @@
+ ' data-username="' + escapeHTML(item.id) + '"' // for avatars
+ ' data-user="' + escapeHTML(item.id) + '"' // for contactsmenu
+ ' data-user-display-name="' + escapeHTML(item.label) + '"></span>'
- + ' <strong>' + escapeHTML(item.label) + '</strong>'
+ + '<strong>' + escapeHTML(item.label) + '</strong>'
+ '</span>';
},
searchKey: "label"
@@ -497,7 +497,7 @@
return ''
+ '<span class="atwho-inserted" contenteditable="false">'
+ '<span class="avatar-name-wrapper' + (isCurrentUser ? ' currentUser' : '') + '">'
- + avatar + ' <strong>'+ _.escape(displayName)+'</strong>'
+ + avatar + '<strong>'+ _.escape(displayName)+'</strong>'
+ '</span>'
+ '</span>';
},