From 4b0a55144f3d0f5d468cc17f39218dcaa010a71f Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sat, 15 Feb 2020 20:29:57 -0500 Subject: [PATCH] Some front end fixes. --- ui/src/components/community.tsx | 6 +++--- ui/src/components/main.tsx | 4 ++-- ui/src/components/post-listing.tsx | 25 ++++++++++++++++++------- 3 files changed, 23 insertions(+), 12 deletions(-) diff --git a/ui/src/components/community.tsx b/ui/src/components/community.tsx index e28c99bc7..67386469e 100644 --- a/ui/src/components/community.tsx +++ b/ui/src/components/community.tsx @@ -136,6 +136,7 @@ export class Community extends Component { render() { return (
+ {this.selects()} {this.state.loading ? (
@@ -158,7 +159,6 @@ export class Community extends Component { )}
- {this.selects()} {this.listings()} {this.paginator()}
@@ -200,7 +200,7 @@ export class Community extends Component { onChange={this.handleDataTypeChange} /> - + { }`} target="_blank" > - + # diff --git a/ui/src/components/main.tsx b/ui/src/components/main.tsx index c8e132f7a..87a2fb66b 100644 --- a/ui/src/components/main.tsx +++ b/ui/src/components/main.tsx @@ -386,6 +386,7 @@ export class Main extends Component { posts() { return (
+ {this.selects()} {this.state.loading ? (
@@ -394,7 +395,6 @@ export class Main extends Component {
) : (
- {this.selects()} {this.listings()} {this.paginator()}
@@ -428,7 +428,7 @@ export class Main extends Component { type_={this.state.dataType} onChange={this.handleDataTypeChange} /> - + {
- - {post.name} - + {this.props.showBody && post.url ? ( + + {post.name} + + ) : ( + + {post.name} + + )}
{post.url && (