From 1ed148d3d230a5c30dea241d8065eee5c4abf381 Mon Sep 17 00:00:00 2001 From: ayan4m1 <andrew@bulletlogic.com> Date: Thu, 15 Jun 2023 08:23:55 -0400 Subject: [PATCH 1/2] fix: <hr> is almost invisible in darkly theme --- src/shared/components/post/post-listings.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/shared/components/post/post-listings.tsx b/src/shared/components/post/post-listings.tsx index 098a015d1..294b94944 100644 --- a/src/shared/components/post/post-listings.tsx +++ b/src/shared/components/post/post-listings.tsx @@ -68,7 +68,7 @@ export class PostListings extends Component<PostListingsProps, any> { return ( <div> {this.posts.length > 0 ? ( - this.posts.map(post_view => ( + this.posts.map((post_view: PostView, idx: number) => ( <> <PostListing post_view={post_view} @@ -96,7 +96,9 @@ export class PostListings extends Component<PostListingsProps, any> { onAddAdmin={this.props.onAddAdmin} onTransferCommunity={this.props.onTransferCommunity} /> - <hr className="my-3" /> + {idx + 1 !== this.posts.length && ( + <hr className="my-3 border border-primary" /> + )} </> )) ) : ( From 1dd8cb09949255593b3a58bd447ac9915b1d41c6 Mon Sep 17 00:00:00 2001 From: ayan4m1 <andrew@bulletlogic.com> Date: Thu, 15 Jun 2023 08:31:36 -0400 Subject: [PATCH 2/2] remove explicit types --- src/shared/components/post/post-listings.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/components/post/post-listings.tsx b/src/shared/components/post/post-listings.tsx index 294b94944..00370f039 100644 --- a/src/shared/components/post/post-listings.tsx +++ b/src/shared/components/post/post-listings.tsx @@ -68,7 +68,7 @@ export class PostListings extends Component<PostListingsProps, any> { return ( <div> {this.posts.length > 0 ? ( - this.posts.map((post_view: PostView, idx: number) => ( + this.posts.map((post_view, idx) => ( <> <PostListing post_view={post_view}