diff --git a/less/chats.less b/less/chats.less index 4eeaad3..882d1d6 100644 --- a/less/chats.less +++ b/less/chats.less @@ -41,7 +41,7 @@ } .username { - font-size: 18px; + font-size: 14px; &:after { display: inline-block; @@ -54,9 +54,6 @@ .teaser-timestamp { font-size: 10px; - position: absolute; - top: 8px; - right: 24px; } a { diff --git a/less/header.less b/less/header.less index 8b6b350..5b4db30 100644 --- a/less/header.less +++ b/less/header.less @@ -17,7 +17,6 @@ img, .user-icon { .user-icon-style(@border-radius: 50%); - float: left; } a { diff --git a/lib/client/chats.js b/lib/client/chats.js index 39871f9..7ef4e58 100644 --- a/lib/client/chats.js +++ b/lib/client/chats.js @@ -2,12 +2,12 @@ define('persona/chats', ['components', 'forum/chats'], function(components, core var Chats = {}; Chats.init = function() { - components.get('chat/recent').off('click').on('click', 'li', function(e) { + components.get('chat/recent').off('click').on('click', '[component="chat/recent/room"]', function(e) { var env = utils.findBootstrapEnvironment(); if (env === 'xs' || env === 'sm') { - app.openChat($(this).attr('data-username'), $(this).attr('data-uid')); + app.openChat($(this).attr('data-roomid')); } else { - coreChats.switchChat(parseInt($(this).attr('data-uid'), 10), $(this).attr('data-username')); + coreChats.switchChat($(this).attr('data-roomid')); } }); }; diff --git a/templates/chat.tpl b/templates/chat.tpl index e01371e..83dc601 100644 --- a/templates/chat.tpl +++ b/templates/chat.tpl @@ -2,15 +2,17 @@