viewport
- Fixes #97. #98
<form onSubmit={linkEvent(this, this.handleCommentSubmit)}>
<div class="form-group row">
<div class="col-sm-12">
- <textarea class="form-control" value={this.state.commentForm.content} onInput={linkEvent(this, this.handleCommentContentChange)} placeholder="Comment here" required disabled={this.props.disabled}/>
+ <textarea class="form-control" value={this.state.commentForm.content} onInput={linkEvent(this, this.handleCommentContentChange)} required disabled={this.props.disabled} rows={2} />
</div>
</div>
<div class="row">
newComments() {
return (
- <div class="sticky-top">
- <h5>New Comments</h5>
+ <div class="container-fluid sticky-top new-comments">
+ <h5>Chat</h5>
+ <CommentForm postId={this.state.post.id} disabled={this.state.post.locked} />
{this.state.comments.map(comment =>
<CommentNodes
nodes={[{comment: comment}]}
margin-top: 6px;
}
+.new-comments {
+ max-height: 100vh;
+ overflow-y: auto;
+}