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 +++++++++++++++++-------------- ui/src/components/comment-nodes.tsx | 2 ++ ui/src/components/inbox.tsx | 30 ++++++++++++++++-------------- ui/src/components/post-listing.tsx | 16 ++++++++-------- ui/src/components/symbols.tsx | 12 ++++++------ ui/src/components/user.tsx | 2 ++ 6 files changed, 51 insertions(+), 42 deletions(-) (limited to 'ui/src') 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 ? (
  • @@ -555,7 +555,7 @@ export class PostListing extends Component { <>