From: ernestwisniewski Date: Tue, 28 Jul 2020 00:05:29 +0000 (+0200) Subject: User details ui fix (#1032) X-Git-Url: http://these/git/%7B%60%24%7BwebArchiveUrl%7D/save/static/%24%7Bargs.pageFn.prev%7D?a=commitdiff_plain;h=aaa436115884952006a88065311d757b392d3ef0;p=lemmy.git User details ui fix (#1032) * User details ui fix * User details ui fix --- 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 => ( - + <> + +
+ ))}
);