open the comment in context when clicked

This commit is contained in:
Riley Davis
2017-05-04 16:32:07 -06:00
parent 5168f563ef
commit 5f9240f201
3 changed files with 12 additions and 2 deletions
@@ -57,7 +57,7 @@ const Comment = ({actions = [], comment, ...props}) => {
<Link to={`/admin/moderate/${comment.asset.id}`}>Moderate </Link>
)}
</div>
<div className={styles.itemBody}>
<a className={styles.itemBody} href={`${comment.asset.url}#${comment.id}`} target="_blank">
<p className={styles.body}>
<Highlighter
searchWords={[...props.suspectWords, ...props.bannedWords, ...linkText]}
@@ -79,7 +79,7 @@ const Comment = ({actions = [], comment, ...props}) => {
})}
</div>
</div>
</div>
</a>
</div>
{
flagActions && flagActions.length
@@ -106,6 +106,7 @@ Comment.propTypes = {
}),
asset: PropTypes.shape({
title: PropTypes.string,
url: PropTypes.string,
id: PropTypes.string
})
})
@@ -231,6 +231,14 @@ span {
font-size: 14px;
line-height: 1.5;
font-weight: 300;
cursor: pointer;
text-decoration: none;
background-color: white;
transition: background-color .3s;
&:hover {
background-color: #eee;
}
}
.avatar {
@@ -11,6 +11,7 @@ fragment commentView on Comment {
asset {
id
title
url
}
action_summaries {
count