diff --git a/web/react/components/posts_view.jsx b/web/react/components/posts_view.jsx index aedf431af9..a28efbd041 100644 --- a/web/react/components/posts_view.jsx +++ b/web/react/components/posts_view.jsx @@ -444,46 +444,22 @@ export default class PostsView extends React.Component { } } - let floatingTimestamp = null; + let topPost = null; if (this.state.topPostId) { - const topPost = this.props.postList.posts[this.state.topPostId]; - const dateString = Utils.getDateForUnixTicks(topPost.create_at).toDateString(); - - let timestampClass = 'post-list__timestamp'; - if (this.state.isScrolling) { - timestampClass += ' scrolling'; - } - - floatingTimestamp = ( -
- {dateString} -
- ); - } - - let scrollToBottomArrows = null; - if ($(window).width() <= 768) { - let scrollToBottomArrowsClass = 'post-list__arrows'; - if (this.state.isScrolling && !this.wasAtBottom) { - scrollToBottomArrowsClass += ' scrolling'; - } - - scrollToBottomArrows = ( -
- ); + topPost = this.props.postList.posts[this.state.topPostId]; } return (
- {floatingTimestamp} - {scrollToBottomArrows} + +
768) { + return