diff --git a/less/topic.less b/less/topic.less index da045a8..b9732f5 100644 --- a/less/topic.less +++ b/less/topic.less @@ -35,8 +35,7 @@ .posts { .icon { - font-size: 17px; - line-height: 17px; + position: relative; border-radius: 50%; min-width: 46px; min-height: 46px; diff --git a/lib/persona.js b/lib/persona.js index 5b2f38a..61d3a4d 100644 --- a/lib/persona.js +++ b/lib/persona.js @@ -168,9 +168,10 @@ $(document).ready(function() { components.get('user/picture') .on('mouseover', function() { var avatar = $(this), - index = avatar.parents('[data-index]').attr('data-index'); + index = avatar.parents('[data-index]').attr('data-index'), + data = (ajaxify.data.topics || ajaxify.data.posts)[index].user; - templates.parse('modules/usercard', ajaxify.data.topics[index].user, function(html) { + templates.parse('modules/usercard', data, function(html) { var card = $(html); avatar.parents('a').after(card.hide());