diff --git a/public/css/style.less b/public/css/style.less index ed91e3ba98..0555af484a 100644 --- a/public/css/style.less +++ b/public/css/style.less @@ -427,25 +427,15 @@ footer.footer { margin: 0; .topic-title { - width: 60%; + width: auto; white-space: nowrap; text-overflow:ellipsis; overflow: hidden; - display: inline-block; margin: 0; padding: 0; padding-top: 5px; margin-bottom: -5px; - - @media (max-width: 1200px) { - width: 500px; - } - @media (min-width: 768px) and (max-width: 979px) { - width: 320px; - } - @media (max-width: 767px) { - width: 75%; - } + padding-bottom: 5px; } } @@ -457,11 +447,8 @@ footer.footer { margin-bottom: 0px; padding-bottom: 0px; text-align: center; + @media (max-width: 767px) { - width: 20%; - max-width: 85px; - } - @media (max-width: 400px) { display: none; } } @@ -506,6 +493,16 @@ footer.footer { display: inline-block; } + .topic-details { + margin-top: 7px; + margin-right: 10px; + color: #ddd; + } + + .topic-buttons { + margin-top: 7px; + } + } } diff --git a/public/src/app.js b/public/src/app.js index b9da953aeb..6e1f3febff 100644 --- a/public/src/app.js +++ b/public/src/app.js @@ -365,13 +365,18 @@ var socket, socket.on('api:user.get_online_users', function(users) { jQuery('.username-field').each(function() { - var uid = jQuery(this).parents('li').attr('data-uid'); + if (this.processed === true) return; + + var el = jQuery(this), + uid = el.parents('li').attr('data-uid'); if (uid && jQuery.inArray(uid, users) !== -1) { - jQuery(this).prepend(''); + el.prepend(' '); } else { - jQuery(this).prepend(''); + el.prepend(' '); } + + el.processed = true; }); }); diff --git a/public/templates/topic.tpl b/public/templates/topic.tpl index 078b03a7a8..afdbd7e3b3 100644 --- a/public/templates/topic.tpl +++ b/public/templates/topic.tpl @@ -23,29 +23,30 @@ 8 -
{topic_name}
- - +{topic_name}