Cursor on user name, and Reply Bio box

This commit is contained in:
Belen Curcio
2017-01-30 20:50:25 -03:00
parent 5b926b9b85
commit 76f55b4524
4 changed files with 11 additions and 5 deletions
+3 -1
View File
@@ -1 +1,3 @@
.Reply {
position: relative;
}
+3 -1
View File
@@ -16,6 +16,8 @@ import {ReplyBox, ReplyButton} from 'coral-plugin-replies';
import FlagComment from 'coral-plugin-flags/FlagComment';
import LikeButton from 'coral-plugin-likes/LikeButton';
import styles from './Comment.css'
const getAction = (type, comment) => comment.actions.filter((a) => a.type === type)[0];
class Comment extends React.Component {
@@ -87,7 +89,7 @@ class Comment extends React.Component {
return (
<div
className={parentId ? 'reply' : 'comment'}
className={parentId ? `reply ${styles.Reply}` : `comment ${styles.Comment}`}
id={`c_${comment.id}`}
style={{marginLeft: depth * 30}}>
<hr aria-hidden={true} />
@@ -27,7 +27,7 @@ export default class AuthorName extends Component {
const {showTooltip} = this.state;
return (
<div className={`${packagename}-text ${styles.container}`} onClick={this.handleClick} onMouseLeave={this.handleMouseLeave}>
<a className={styles.authorName}>
<a className={`${styles.authorName} ${author.settings.bio ? styles.hasBio : ''}`}>
{author && author.name}
{author.settings.bio ? <span className={`${styles.arrowDown} ${showTooltip ? styles.arrowUp : ''}`} /> : null}
</a>
+4 -2
View File
@@ -2,10 +2,12 @@
color: black;
display: inline-block;
margin: 10px 0;
}
.hasBio {
&:hover {
cursor: pointer;
}
cursor: pointer;
}
}
.arrowDown {