FIX: On mobile the highlight was being cut off
This commit is contained in:
parent
4f4c1b54ba
commit
ee6cd3e4c4
|
@ -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)
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue