From ce2ec34e585bd5f9c319936ae66fe764dabac0e3 Mon Sep 17 00:00:00 2001 From: Asaad Mahmood Date: Fri, 29 Jan 2016 00:04:42 +0500 Subject: Adding reply icon --- web/react/components/post_info.jsx | 8 +++++- web/sass-files/sass/partials/_responsive.scss | 38 ++++++++++++++++++++------- 2 files changed, 36 insertions(+), 10 deletions(-) (limited to 'web') diff --git a/web/react/components/post_info.jsx b/web/react/components/post_info.jsx index 2bd1a57f7..73b47024c 100644 --- a/web/react/components/post_info.jsx +++ b/web/react/components/post_info.jsx @@ -24,8 +24,14 @@ export default class PostInfo extends React.Component { } createReplyLink() { if (this.props.allowReply === 'true') { + var hideReply = ''; + + if (this.props.commentCount >= 1) { + hideReply = ' post__reply--hide'; + } + return ( -
+