Adding Reply Badge to User History

This commit is contained in:
Belen Curcio
2017-08-21 17:27:32 -03:00
parent 647b5ed745
commit c402627280
7 changed files with 16 additions and 10 deletions
@@ -3,12 +3,11 @@
color: white;
background: grey;
box-sizing: border-box;
padding: 0px 5px;
border-radius: 2px;
padding: 2px 5px;
font-size: 12px;
height: 24px;
letter-spacing: 0.4px;
margin-bottom: 1px;
line-height: 22px;
> i {
font-size: 14px;
@@ -55,7 +55,7 @@
position: relative;
}
.commentType {
.badgeBar {
position: absolute;
right: 0px;
}
@@ -3,6 +3,7 @@ import {Link} from 'react-router';
import {Icon} from 'coral-ui';
import FlagBox from './FlagBox';
import ReplyBadge from './ReplyBadge';
import styles from './UserDetailComment.css';
import CommentType from './CommentType';
import {getActionSummary} from 'coral-framework/utils';
@@ -56,7 +57,11 @@ class UserDetailComment extends React.Component {
? <span>&nbsp;<span className={styles.editedMarker}>({t('comment.edited')})</span></span>
: null
}
<CommentType type={commentType} className={styles.commentType}/>
<div className={styles.badgeBar}>
<ReplyBadge hasParent={comment.hasParent} />
<CommentType type={commentType}/>
</div>
</div>
<div className={styles.story}>
Story: {comment.asset.title}
@@ -9,6 +9,7 @@ export default withFragments({
body
created_at
status
hasParent
asset {
id
title
@@ -2,6 +2,7 @@ import React, {PropTypes} from 'react';
import {Link} from 'react-router';
import {Icon} from 'coral-ui';
import ReplyBadge from 'coral-admin/src/components/ReplyBadge';
import FlagBox from 'coral-admin/src/components/FlagBox';
import styles from './styles.css';
import CommentType from 'coral-admin/src/components/CommentType';
@@ -15,7 +16,6 @@ import CommentBodyHighlighter from 'coral-admin/src/components/CommentBodyHighli
import IfHasLink from 'coral-admin/src/components/IfHasLink';
import cn from 'classnames';
import {getCommentType} from 'coral-admin/src/utils/comment';
import ReplyBadge from './ReplyBadge';
import t, {timeago} from 'coral-framework/services/i18n';
+5 -4
View File
@@ -1,14 +1,15 @@
.badge {
display: inline-block;
color: white;
background-color: #3D73D5;
background: grey;
box-sizing: border-box;
padding: 0px 5px;
padding: 2px 5px;
font-size: 12px;
height: 24px;
letter-spacing: 0.4px;
margin-bottom: 1px;
margin-right: 2px;
line-height: 22px;
background-color: #3D73D5;
margin-right: 4px;
}
.icon {