]> Untitled Git - lemmy-ui.git/commitdiff
Merge branch 'main' into add-user-scalable-no
authorSleeplessOne1917 <abias1122@gmail.com>
Thu, 15 Jun 2023 15:56:39 +0000 (15:56 +0000)
committerGitHub <noreply@github.com>
Thu, 15 Jun 2023 15:56:39 +0000 (15:56 +0000)
src/shared/components/post/post-listings.tsx

index 098a015d1beecf9cdfcf0f25e2eed27092955450..00370f039bfea8b104d206e1fcf497e27e400501 100644 (file)
@@ -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, idx) => (
             <>
               <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" />
+              )}
             </>
           ))
         ) : (