From c7fb1f7fe94cd018daa7de2b85a2246eaff9f111 Mon Sep 17 00:00:00 2001 From: hmhealey Date: Tue, 15 Dec 2015 16:31:07 -0500 Subject: Hid floating timestamp header on non-mobile --- web/react/components/posts_view.jsx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'web/react') diff --git a/web/react/components/posts_view.jsx b/web/react/components/posts_view.jsx index 187cf2a71..a4dd51e19 100644 --- a/web/react/components/posts_view.jsx +++ b/web/react/components/posts_view.jsx @@ -94,6 +94,11 @@ export default class PostsView extends React.Component { }); } updateFloatingTimestamp() { + // skip this in non-mobile view since that's when the timestamp is visible + if ($(window).width() > 768) { + return; + } + if (this.props.postList) { // iterate through posts starting at the bottom since users are more likely to be viewing newer posts for (let i = 0; i < this.props.postList.order.length; i++) { -- cgit v1.2.3-1-g7c22