From 2f9a052f89fe8d34fedcd2219e644dd51cda5505 Mon Sep 17 00:00:00 2001 From: Richard Date: Fri, 31 Jan 2020 21:52:27 +0100 Subject: usability features This are all the commits from another PR combined into a single commit. --- ui/src/components/post.tsx | 27 ++++----------------------- 1 file changed, 4 insertions(+), 23 deletions(-) (limited to 'ui/src/components/post.tsx') diff --git a/ui/src/components/post.tsx b/ui/src/components/post.tsx index 36621248..1d84efac 100644 --- a/ui/src/components/post.tsx +++ b/ui/src/components/post.tsx @@ -155,11 +155,11 @@ export class Post extends Component { return (
{this.state.loading ? ( -
+

-

+

) : (
@@ -173,7 +173,7 @@ export class Post extends Component { {this.state.crossPosts.length > 0 && ( <>
- # + { i18n.t('cross_posts') }
@@ -235,18 +235,6 @@ export class Post extends Component { onChange={linkEvent(this, this.handleCommentSortChange)} /> -
); } @@ -256,7 +244,7 @@ export class Post extends Component {
- # + { i18n.t('recent_comments') }
{this.state.comments.map(comment => ( { +a.comment.deleted - +b.comment.deleted || b.comment.published.localeCompare(a.comment.published) ); - } else if (this.state.commentSort == CommentSortType.Old) { - tree.sort( - (a, b) => - +a.comment.removed - +b.comment.removed || - +a.comment.deleted - +b.comment.deleted || - a.comment.published.localeCompare(b.comment.published) - ); } else if (this.state.commentSort == CommentSortType.Hot) { tree.sort( (a, b) => -- cgit v1.2.3