mirror of
https://github.com/wassname/talk.git
synced 2026-07-03 12:04:02 +08:00
open the comment in context when clicked
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user