FIX: If a topic is really long, show the timeline
This commit is contained in:
parent
a922db6158
commit
79763a6b97
|
@ -345,7 +345,11 @@ export default createWidget('topic-timeline', {
|
|||
}
|
||||
|
||||
if (stream.length < 3) {
|
||||
return result;
|
||||
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 });
|
||||
|
|
Loading…
Reference in New Issue