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>
This commit is contained in:
Daniel Calviño Sánchez 2018-09-05 09:10:32 +02:00
parent da75c7ff6d
commit 3ee07ac770
1 changed files with 3 additions and 3 deletions

View File

@ -202,7 +202,7 @@
+ ' data-username="' + escapeHTML(item.id) + '"' // for avatars + ' data-username="' + escapeHTML(item.id) + '"' // for avatars
+ ' data-user="' + escapeHTML(item.id) + '"' // for contactsmenu + ' data-user="' + escapeHTML(item.id) + '"' // for contactsmenu
+ ' data-user-display-name="' + escapeHTML(item.label) + '"></span>' + ' data-user-display-name="' + escapeHTML(item.label) + '"></span>'
+ ' <strong>' + escapeHTML(item.label) + '</strong>' + '<strong>' + escapeHTML(item.label) + '</strong>'
+ '</span></li>'; + '</span></li>';
}, },
insertTpl: function (item) { insertTpl: function (item) {
@ -212,7 +212,7 @@
+ ' data-username="' + escapeHTML(item.id) + '"' // for avatars + ' data-username="' + escapeHTML(item.id) + '"' // for avatars
+ ' data-user="' + escapeHTML(item.id) + '"' // for contactsmenu + ' data-user="' + escapeHTML(item.id) + '"' // for contactsmenu
+ ' data-user-display-name="' + escapeHTML(item.label) + '"></span>' + ' data-user-display-name="' + escapeHTML(item.label) + '"></span>'
+ ' <strong>' + escapeHTML(item.label) + '</strong>' + '<strong>' + escapeHTML(item.label) + '</strong>'
+ '</span>'; + '</span>';
}, },
searchKey: "label" searchKey: "label"
@ -497,7 +497,7 @@
return '' return ''
+ '<span class="atwho-inserted" contenteditable="false">' + '<span class="atwho-inserted" contenteditable="false">'
+ '<span class="avatar-name-wrapper' + (isCurrentUser ? ' currentUser' : '') + '">' + '<span class="avatar-name-wrapper' + (isCurrentUser ? ' currentUser' : '') + '">'
+ avatar + ' <strong>'+ _.escape(displayName)+'</strong>' + avatar + '<strong>'+ _.escape(displayName)+'</strong>'
+ '</span>' + '</span>'
+ '</span>'; + '</span>';
}, },