]> Untitled Git - lemmy.git/commitdiff
Image thumbnail click now expands here.
authorDessalines <tyhou13@gmx.com>
Wed, 24 Apr 2019 17:42:57 +0000 (10:42 -0700)
committerDessalines <tyhou13@gmx.com>
Wed, 24 Apr 2019 17:42:57 +0000 (10:42 -0700)
ui/src/components/post-listing.tsx

index e0ddd31053891bcc331968c290f54a3678f30788..e163717ec8b52ef7df0d3310cc9e06d6b78e5cdd 100644 (file)
@@ -67,7 +67,7 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
           </div>
         </div>
         {post.url && isImage(post.url) &&
-          <a href={post.url} target="_blank"><img class="mx-2 float-left img-fluid thumbnail rounded" src={post.url} /></a>
+          <span class="pointer" onClick={linkEvent(this, this.handleImageExpandClick)}><img class="mx-2 float-left img-fluid thumbnail rounded" src={post.url} /></span>
         }
         <div className="ml-4">
           {post.url