From f76c3af557c88b382fba14c8ab19f64664dcda38 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Fri, 20 Mar 2020 16:53:54 -0400 Subject: Adding clearer goto context. - Adding context props. - Making link / context the first selectable on user and inbox page. - Making icons a little bigger. - #609 --- ui/src/components/comment-node.tsx | 31 +++++++++++++++++-------------- 1 file changed, 17 insertions(+), 14 deletions(-) (limited to 'ui/src/components/comment-node.tsx') diff --git a/ui/src/components/comment-node.tsx b/ui/src/components/comment-node.tsx index d5d872f5..c1dceed2 100644 --- a/ui/src/components/comment-node.tsx +++ b/ui/src/components/comment-node.tsx @@ -66,6 +66,7 @@ interface CommentNodeProps { viewOnly?: boolean; locked?: boolean; markable?: boolean; + showContext?: boolean; moderators: Array; admins: Array; // TODO is this necessary, can't I get it from the node itself? @@ -249,10 +250,11 @@ export class CommentNode extends Component { /> )}
    + {this.props.showContext && this.linkBtn} {this.props.markable && (
  • - {this.props.markable && this.linkBtn} {!this.state.showAdvanced ? (