FIX: On mobile the highlight was being cut off

This commit is contained in:
Robin Ward 2016-06-03 16:54:54 -04:00
parent 4f4c1b54ba
commit ee6cd3e4c4
No known key found for this signature in database
GPG Key ID: 0E091E2B4ED1B83D
2 changed files with 2 additions and 2 deletions

View File

@ -137,7 +137,7 @@ const TopicView = Ember.View.extend(AddCategoryClass, AddArchetypeClass, Scrolli
}); });
function highlight(postNumber) { function highlight(postNumber) {
const $contents = $('#post_' + postNumber +' .topic-body'), const $contents = $(`#post_${postNumber} .topic-body`),
origColor = $contents.data('orig-color') || $contents.css('backgroundColor'); origColor = $contents.data('orig-color') || $contents.css('backgroundColor');
$contents.data("orig-color", origColor) $contents.data("orig-color", origColor)

View File

@ -296,7 +296,7 @@ createWidget('post-contents', {
}); });
createWidget('post-body', { createWidget('post-body', {
tagName: 'div.topic-body', tagName: 'div.topic-body.clearfix',
html(attrs) { html(attrs) {
const postContents = this.attach('post-contents', attrs); const postContents = this.attach('post-contents', attrs);