FIX: If a topic is really long, show the timeline

This commit is contained in:
Robin Ward 2017-06-05 13:10:51 -04:00
parent a922db6158
commit 79763a6b97
1 changed files with 5 additions and 1 deletions

View File

@ -345,8 +345,12 @@ export default createWidget('topic-timeline', {
}
if (stream.length < 3) {
const topicHeight = $('#topic').height();
const windowHeight = $(window).height();
if ((topicHeight / windowHeight) < 2.0) {
return result;
}
}
const bottomAge = relativeAge(new Date(topic.last_posted_at), { addAgo: true, defaultFormat: timelineDate });
let scroller = [h('div.timeline-date-wrapper', this.attach('link', {