From fbdb2e410a4a0fdbef14bb3c2229b3457e517c45 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Wed, 24 Apr 2019 10:26:15 -0700 Subject: [PATCH] Adding image thumbnails. --- ui/src/components/post-listing.tsx | 5 ++++- ui/src/css/main.css | 5 +++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ui/src/components/post-listing.tsx b/ui/src/components/post-listing.tsx index babb860..e0ddd31 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 61acb01..5af8a0f 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; +}