diff --git a/assets/chat/css/menus/_user-list.scss b/assets/chat/css/menus/_user-list.scss index 10e45d14..12fde4d5 100644 --- a/assets/chat/css/menus/_user-list.scss +++ b/assets/chat/css/menus/_user-list.scss @@ -61,15 +61,13 @@ display: flex; .user-actions { + display: flex; position: absolute; right: a.$gutter-md; - .mention-nick, .whisper-nick { + @include a.icon-background('../img/icon-whisper.svg'); visibility: hidden; - margin-right: a.$gutter-xs; - margin-top: 0.45em; - display: inline-block; opacity: 0.25; width: 1em; height: 1em; @@ -77,20 +75,11 @@ opacity: 1; } } - - .mention-nick { - @include a.icon-background('../img/icon-share.svg'); - } - - .whisper-nick { - @include a.icon-background('../img/icon-whisper.svg'); - } } &:hover { background: #282828; - .mention-nick, .whisper-nick { visibility: visible; } diff --git a/assets/chat/img/icon-share.svg b/assets/chat/img/icon-share.svg deleted file mode 100644 index 3d9a7597..00000000 --- a/assets/chat/img/icon-share.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/assets/chat/js/menus/ChatUserMenu.js b/assets/chat/js/menus/ChatUserMenu.js index 14e46161..d8955df2 100644 --- a/assets/chat/js/menus/ChatUserMenu.js +++ b/assets/chat/js/menus/ChatUserMenu.js @@ -57,15 +57,6 @@ export default class ChatUserMenu extends ChatMenu { true, ), ); - this.container.on('click', '.mention-nick', (e) => { - ChatMenu.closeMenus(this.chat); - const value = this.chat.input.val().toString().trim(); - const username = $(e.target).parent().parent().data('username'); - this.chat.input - .val(`${value + (value === '' ? '' : ' ') + username} `) - .focus(); - return false; - }); this.container.on('click', '.whisper-nick', (e) => { ChatMenu.closeMenus(this.chat); const value = this.chat.input.val().toString().trim(); @@ -257,7 +248,7 @@ export default class ChatUserMenu extends ChatMenu { const features = user.features.length === 0 ? 'nofeature' : user.features.join(' '); const usr = $( - `