From baf4b9a453d4e722d6e949c95b4042a2e3c418e5 Mon Sep 17 00:00:00 2001 From: Asaad Mahmood Date: Thu, 2 Feb 2017 02:16:19 +0500 Subject: PLT-5356 - Fixing margins for paragraphs (#5217) * PLT-5356 - Fixing margins for paragraphs * Fixing conflict * Fixing font size for paragraphs --- webapp/components/rhs_comment.jsx | 4 ++++ webapp/components/rhs_root_post.jsx | 17 ++++++++++++----- webapp/sass/layout/_post.scss | 18 ++++-------------- 3 files changed, 20 insertions(+), 19 deletions(-) (limited to 'webapp') diff --git a/webapp/components/rhs_comment.jsx b/webapp/components/rhs_comment.jsx index 614ba6005..24baaa09c 100644 --- a/webapp/components/rhs_comment.jsx +++ b/webapp/components/rhs_comment.jsx @@ -313,6 +313,10 @@ export default class RhsComment extends React.Component { ); } + if (PostUtils.isEdited(this.props.post)) { + postClass += ' post--edited'; + } + let systemMessageClass = ''; if (isSystemMessage) { systemMessageClass = 'post--system'; diff --git a/webapp/components/rhs_root_post.jsx b/webapp/components/rhs_root_post.jsx index 2942a0efc..5ab0a3956 100644 --- a/webapp/components/rhs_root_post.jsx +++ b/webapp/components/rhs_root_post.jsx @@ -341,6 +341,7 @@ export default class RhsRootPost extends React.Component { } let compactClass = ''; + let postClass = ''; if (this.props.compactDisplay) { compactClass = 'post--compact'; @@ -362,6 +363,10 @@ export default class RhsRootPost extends React.Component { } } + if (PostUtils.isEdited(this.props.post)) { + postClass += ' post--edited'; + } + const profilePicContainer = (
{profilePic}
); let flag; @@ -447,11 +452,13 @@ export default class RhsRootPost extends React.Component {
- } - previewCollapsed={this.props.previewCollapsed} - /> +
+ } + previewCollapsed={this.props.previewCollapsed} + /> +
{fileAttachment}