From: Dessalines Date: Mon, 20 Jan 2020 19:38:41 +0000 (-0500) Subject: Adding nsfw image blur. Fixes #438 X-Git-Url: http://these/git/readmes/static/%7B%60/css/themes/%7Biframely.url%7D?a=commitdiff_plain;h=21ebc8a574d13c8a7e2da333243cd7e9e6b12ea4;p=lemmy.git Adding nsfw image blur. Fixes #438 --- diff --git a/ui/assets/css/main.css b/ui/assets/css/main.css index dcc55f19..2703d550 100644 --- a/ui/assets/css/main.css +++ b/ui/assets/css/main.css @@ -163,3 +163,10 @@ hr { flex: 1; } +.img-blur { + filter: blur(10px); + -webkit-filter: blur(10px); + -moz-filter: blur(10px); + -o-filter: blur(10px); + -ms-filter: blur(10px); +} diff --git a/ui/src/components/post-listing.tsx b/ui/src/components/post-listing.tsx index 0ffabf27..b1db2670 100644 --- a/ui/src/components/post-listing.tsx +++ b/ui/src/components/post-listing.tsx @@ -160,22 +160,20 @@ export class PostListing extends Component { )} - {post.url && - isImage(post.url) && - !post.nsfw && - !post.community_nsfw && - !this.state.imageExpanded && ( - - - - )} + {post.url && isImage(post.url) && !this.state.imageExpanded && ( + + + + )} {post.url && isVideo(post.url) && (