mirror of
https://github.com/wassname/talk.git
synced 2026-07-05 15:54:14 +08:00
Adds padding and resolves when is not staff.
This commit is contained in:
@@ -93,7 +93,7 @@ class Comment extends React.Component {
|
||||
|
||||
const like = getAction('LIKE', comment);
|
||||
const flag = getAction('FLAG', comment);
|
||||
|
||||
|
||||
return (
|
||||
<div
|
||||
className={parentId ? `reply ${styles.Reply}` : `comment ${styles.Comment}`}
|
||||
@@ -102,7 +102,9 @@ class Comment extends React.Component {
|
||||
<hr aria-hidden={true} />
|
||||
<AuthorName
|
||||
author={comment.user}/>
|
||||
<TagLabel isStaff={isStaff(comment.tags)}/>
|
||||
{ isStaff(comment.tags)
|
||||
? <TagLabel isStaff={true}/>
|
||||
: null }
|
||||
<PubDate created_at={comment.created_at} />
|
||||
<Content body={comment.body} />
|
||||
<div className="commentActionsLeft">
|
||||
|
||||
@@ -3,7 +3,7 @@ import React from 'react';
|
||||
import styles from './styles.css';
|
||||
|
||||
const TagLabel = ({isStaff}) => <div className={`${styles.staff}`}>
|
||||
{(isStaff) ? 'Staff' : ''}
|
||||
{isStaff ? 'Staff' : ''}
|
||||
</div>;
|
||||
|
||||
export default TagLabel;
|
||||
|
||||
@@ -3,4 +3,5 @@
|
||||
color: white;
|
||||
display: inline-block;
|
||||
margin: 10px 10px;
|
||||
padding: 5px 5px;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user