Adding reply icon
Этот коммит содержится в:
@@ -24,8 +24,14 @@ export default class PostInfo extends React.Component {
|
|||||||
}
|
}
|
||||||
createReplyLink() {
|
createReplyLink() {
|
||||||
if (this.props.allowReply === 'true') {
|
if (this.props.allowReply === 'true') {
|
||||||
|
var hideReply = '';
|
||||||
|
|
||||||
|
if (this.props.commentCount >= 1) {
|
||||||
|
hideReply = ' post__reply--hide';
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className='post__reply'>
|
<div className={'post__reply' + hideReply}>
|
||||||
<a
|
<a
|
||||||
onClick={this.props.handleCommentClick}
|
onClick={this.props.handleCommentClick}
|
||||||
href='#'
|
href='#'
|
||||||
|
|||||||
@@ -78,16 +78,10 @@
|
|||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
background: transparent;
|
background: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
.comment-icon__container {
|
.comment-icon__container {
|
||||||
visibility: hidden;
|
visibility: hidden;
|
||||||
|
|
||||||
&.icon--show {
|
|
||||||
visibility: visible;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -124,8 +118,34 @@
|
|||||||
|
|
||||||
.post {
|
.post {
|
||||||
|
|
||||||
|
.post__body {
|
||||||
|
width: calc(100% - 75px);
|
||||||
|
}
|
||||||
|
|
||||||
|
.post__reply {
|
||||||
|
margin-right: 20px;
|
||||||
|
float: right;
|
||||||
|
|
||||||
|
svg {
|
||||||
|
top: 1px;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
&.other--root .post__reply {
|
||||||
|
|
||||||
|
&.post__reply--hide {
|
||||||
|
visibility: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
.post__header {
|
.post__header {
|
||||||
|
|
||||||
|
.col__reply {
|
||||||
|
width: 65px;
|
||||||
|
}
|
||||||
|
|
||||||
.col__name {
|
.col__name {
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user