diff --git a/src/shared/components/post/post-listing.tsx b/src/shared/components/post/post-listing.tsx index 49825b39..b2e1f7e0 100644 --- a/src/shared/components/post/post-listing.tsx +++ b/src/shared/components/post/post-listing.tsx @@ -203,16 +203,16 @@ export class PostListing extends Component { if (isImage(post.url)) { return ( -
{this.imgThumb(this.getImageSrc())} -
+ ); } else if (post.thumbnail_url) { return ( @@ -419,12 +419,13 @@ export class PostListing extends Component {
- +
))} @@ -1542,7 +1543,8 @@ export class PostListing extends Component { i.setState(i.state); } - handleImageExpandClick(i: PostListing) { + handleImageExpandClick(i: PostListing, event: any) { + event.preventDefault(); i.state.imageExpanded = !i.state.imageExpanded; i.setState(i.state); }