mirror of
https://github.com/nextcloud/server.git
synced 2026-02-20 16:35:37 -05:00
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:
parent
c9ce96ff05
commit
db1fce6a59
1 changed files with 3 additions and 3 deletions
|
|
@ -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>';
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue