From 79763a6b97ae3d6c564f243e59e87b721da1ead4 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Mon, 5 Jun 2017 13:10:51 -0400 Subject: [PATCH] FIX: If a topic is really long, show the timeline --- .../javascripts/discourse/widgets/topic-timeline.js.es6 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/widgets/topic-timeline.js.es6 b/app/assets/javascripts/discourse/widgets/topic-timeline.js.es6 index a77012282bc..f71e7b892d5 100644 --- a/app/assets/javascripts/discourse/widgets/topic-timeline.js.es6 +++ b/app/assets/javascripts/discourse/widgets/topic-timeline.js.es6 @@ -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 });