From aaa436115884952006a88065311d757b392d3ef0 Mon Sep 17 00:00:00 2001 From: ernestwisniewski Date: Tue, 28 Jul 2020 02:05:29 +0200 Subject: [PATCH] User details ui fix (#1032) * User details ui fix * User details ui fix --- ui/src/components/comment-node.tsx | 7 ++-- ui/src/components/comment-nodes.tsx | 2 + ui/src/components/user-details.tsx | 61 +++++++++++++++++------------ 3 files changed, 41 insertions(+), 29 deletions(-) diff --git a/ui/src/components/comment-node.tsx b/ui/src/components/comment-node.tsx index 07afaea3..51b05161 100644 --- a/ui/src/components/comment-node.tsx +++ b/ui/src/components/comment-node.tsx @@ -64,6 +64,7 @@ interface CommentNodeState { interface CommentNodeProps { node: CommentNodeI; + noBorder?: boolean; noIndent?: boolean; viewOnly?: boolean; locked?: boolean; @@ -136,9 +137,9 @@ export class CommentNode extends Component { >
; admins?: Array; postCreatorId?: number; + noBorder?: boolean; noIndent?: boolean; viewOnly?: boolean; locked?: boolean; @@ -42,6 +43,7 @@ export class CommentNodes extends Component< { return (
{combined.map(i => ( -
- {i.type === 'posts' ? ( - - ) : ( - - )} -
+ <> +
+ {i.type === 'posts' ? ( + + ) : ( + + )} +
+
+ ))}
); @@ -177,6 +182,7 @@ export class UserDetails extends Component { nodes={commentsToFlatNodes(this.state.comments)} admins={this.props.admins} noIndent + showCommunity showContext enableDownvotes={this.props.enableDownvotes} /> @@ -188,13 +194,16 @@ export class UserDetails extends Component { return (
{this.state.posts.map(post => ( - + <> + +
+ ))}
); -- 2.44.1