FIX: If a topic is really long, show the timeline
This commit is contained in:
parent
a922db6158
commit
79763a6b97
|
@ -345,8 +345,12 @@ export default createWidget('topic-timeline', {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (stream.length < 3) {
|
if (stream.length < 3) {
|
||||||
|
const topicHeight = $('#topic').height();
|
||||||
|
const windowHeight = $(window).height();
|
||||||
|
if ((topicHeight / windowHeight) < 2.0) {
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
const bottomAge = relativeAge(new Date(topic.last_posted_at), { addAgo: true, defaultFormat: timelineDate });
|
const bottomAge = relativeAge(new Date(topic.last_posted_at), { addAgo: true, defaultFormat: timelineDate });
|
||||||
let scroller = [h('div.timeline-date-wrapper', this.attach('link', {
|
let scroller = [h('div.timeline-date-wrapper', this.attach('link', {
|
||||||
|
|
Loading…
Reference in New Issue