diff --git a/ui/src/components/post-listing.tsx b/ui/src/components/post-listing.tsx index 7a6e954..40462eb 100644 --- a/ui/src/components/post-listing.tsx +++ b/ui/src/components/post-listing.tsx @@ -67,44 +67,37 @@ export class PostListing extends Component { {post.url && isImage(post.url) && - + }
- {post.url - ?
-
{post.name} +
+
{post.name}
+ {post.url && + + {(new URL(post.url)).hostname} + + } {post.removed && removed } {post.locked && locked } -
- {(new URL(post.url)).hostname} - { isImage(post.url) && - <> - { !this.state.imageExpanded - ? + - : - - - -
- -
-
- } - - } -
- :
{post.name} - {post.removed && - removed - } - {post.locked && - locked - } -
- } + { post.url && isImage(post.url) && + <> + { !this.state.imageExpanded + ? + + : + + - +
+ +
+
+ } + + } +