From: Dessalines Date: Wed, 24 Apr 2019 17:26:15 +0000 (-0700) Subject: Adding image thumbnails. X-Git-Url: http://these/git/readmes/static/%7B%60/css/themes/%7BpictrsAvatarThumbnail%28this.props.site.site.icon%29%7D?a=commitdiff_plain;h=b70fa604187e16015c7c6f71f8b48d4f21594f0c;p=lemmy.git Adding image thumbnails. --- diff --git a/ui/src/components/post-listing.tsx b/ui/src/components/post-listing.tsx index babb8605..e0ddd310 100644 --- a/ui/src/components/post-listing.tsx +++ b/ui/src/components/post-listing.tsx @@ -66,6 +66,9 @@ export class PostListing extends Component { + {post.url && isImage(post.url) && + + }
{post.url ?
@@ -86,7 +89,7 @@ export class PostListing extends Component { -
- +
} diff --git a/ui/src/css/main.css b/ui/src/css/main.css index 61acb014..5af8a0f5 100644 --- a/ui/src/css/main.css +++ b/ui/src/css/main.css @@ -95,3 +95,8 @@ blockquote { .new-comments:hover { overflow-y: auto; } + +.thumbnail { + max-height: 50px; + max-width: 50px; +}