]> Untitled Git - lemmy.git/commitdiff
Needs to go below image expander
authorDessalines <tyhou13@gmx.com>
Sat, 17 Aug 2019 20:18:25 +0000 (13:18 -0700)
committerDessalines <tyhou13@gmx.com>
Sat, 17 Aug 2019 20:18:25 +0000 (13:18 -0700)
ui/src/components/post-listing.tsx

index ca03b9801366c89026b27b6fa1fb869613bc523f..14f2ee8531c1e0b495e75b14fd76d16394d74574 100644 (file)
@@ -84,18 +84,6 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
                 <a className="ml-2 text-muted font-italic" href={post.url} target="_blank" title={post.url}>{(new URL(post.url)).hostname}</a>
               </small>
             }
-            {post.removed &&
-              <small className="ml-2 text-muted font-italic"><T i18nKey="removed">#</T></small>
-            }
-            {post.deleted &&
-              <small className="ml-2 text-muted font-italic"><T i18nKey="deleted">#</T></small>
-            }
-            {post.locked &&
-              <small className="ml-2 text-muted font-italic"><T i18nKey="locked">#</T></small>
-            }
-            {post.nsfw &&
-              <small className="ml-2 text-muted font-italic"><T i18nKey="nsfw">#</T></small>
-            }
             { post.url && isImage(post.url) && 
               <>
                 { !this.state.imageExpanded
@@ -110,6 +98,18 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
                 }
               </>
             }
+            {post.removed &&
+              <small className="ml-2 text-muted font-italic"><T i18nKey="removed">#</T></small>
+            }
+            {post.deleted &&
+              <small className="ml-2 text-muted font-italic"><T i18nKey="deleted">#</T></small>
+            }
+            {post.locked &&
+              <small className="ml-2 text-muted font-italic"><T i18nKey="locked">#</T></small>
+            }
+            {post.nsfw &&
+              <small className="ml-2 text-muted font-italic"><T i18nKey="nsfw">#</T></small>
+            }
           </div>
         </div>
         <div className="details ml-4 mb-1">