1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-14 14:21:23 +00:00
This commit is contained in:
Michael18811380328
2018-12-06 17:56:31 +08:00
parent 1891c4e198
commit 81f33b6ca4
4 changed files with 22 additions and 29 deletions

View File

@@ -12,7 +12,6 @@ const commentDialogPropTypes = {
selectedText: PropTypes.string,
newIndex: PropTypes.number,
oldIndex: PropTypes.number,
top: PropTypes.string
};
class ReviewCommentDialog extends React.Component {
@@ -88,9 +87,8 @@ class ReviewCommentDialog extends React.Component {
}
render() {
let dialogTop = (parseInt(this.props.top) - 80)+ 'px';
return (
<div className="review-comment-dialog" style={{top: (dialogTop)}}>
<div className="review-comment-dialog">
<div>{this.state.userName}</div>
<textarea value={this.state.comment} onChange={this.handleCommentChange}></textarea>
<div className="button-group">