]> Untitled Git - lemmy-ui.git/commitdiff
remove icon (#1618)
authorAlec Armbruster <35377827+alectrocute@users.noreply.github.com>
Mon, 26 Jun 2023 20:09:11 +0000 (16:09 -0400)
committerJay Sitter <jay@jaysitter.com>
Tue, 27 Jun 2023 00:13:28 +0000 (20:13 -0400)
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
src/shared/components/post/post-listing.tsx

index 19523f201005d9d866e07880c89bfd8e4b67e3a5..f898e833adeaa1e02049c4eb97c5395538d776ec 100644 (file)
@@ -481,21 +481,6 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
               this.postLink
             )}
           </h5>
-          {(url && isImage(url)) ||
-            (post.thumbnail_url && (
-              <button
-                className="btn btn-sm text-monospace text-muted d-inline-block"
-                data-tippy-content={I18NextService.i18n.t("expand_here")}
-                onClick={linkEvent(this, this.handleImageExpandClick)}
-              >
-                <Icon
-                  icon={
-                    !this.state.imageExpanded ? "plus-square" : "minus-square"
-                  }
-                  classes="icon-inline"
-                />
-              </button>
-            ))}
 
           {/**
            * If there is a URL, or if the post has a body and we were told not to
@@ -520,6 +505,7 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
               {I18NextService.i18n.t("removed")}
             </small>
           )}
+
           {post.deleted && (
             <small
               className="unselectable pointer ms-2 text-muted fst-italic"
@@ -528,6 +514,7 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
               <Icon icon="trash" classes="icon-inline text-danger" />
             </small>
           )}
+
           {post.locked && (
             <small
               className="unselectable pointer ms-2 text-muted fst-italic"
@@ -536,6 +523,7 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
               <Icon icon="lock" classes="icon-inline text-danger" />
             </small>
           )}
+
           {post.featured_community && (
             <small
               className="unselectable pointer ms-2 text-muted fst-italic"
@@ -547,6 +535,7 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
               <Icon icon="pin" classes="icon-inline text-primary" />
             </small>
           )}
+
           {post.featured_local && (
             <small
               className="unselectable pointer ms-2 text-muted fst-italic"
@@ -556,6 +545,7 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
               <Icon icon="pin" classes="icon-inline text-secondary" />
             </small>
           )}
+
           {post.nsfw && (
             <small className="ms-2 badge text-bg-danger">
               {I18NextService.i18n.t("nsfw")}