summaryrefslogtreecommitdiffstats
path: root/ui/src/components/post.tsx
diff options
context:
space:
mode:
authorDessalines <tyhou13@gmx.com>2019-04-21 16:44:47 -0700
committerDessalines <tyhou13@gmx.com>2019-04-21 16:44:47 -0700
commitb80ec3fe96c364bd14a5149b2511a9ef4e46b12a (patch)
treed83e210fd930ae72c9eda7bed69f3a29df4d6df0 /ui/src/components/post.tsx
parent8a57fd420ae596f9dfecc8cad46808c3e0800fe3 (diff)
Making chat / new comments section sticky top and fitting to your
viewport - Fixes #97. #98
Diffstat (limited to 'ui/src/components/post.tsx')
-rw-r--r--ui/src/components/post.tsx5
1 files changed, 3 insertions, 2 deletions
diff --git a/ui/src/components/post.tsx b/ui/src/components/post.tsx
index 3ece6747..9f489466 100644
--- a/ui/src/components/post.tsx
+++ b/ui/src/components/post.tsx
@@ -130,8 +130,9 @@ export class Post extends Component<any, PostState> {
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}]}