misc: make nsfw blurring more consistent

This commit is contained in:
James Xylight committed 2025-03-08 11:54:42 -08:00
1 parent c4c28aa76b
commit 0236928bb9
3 files changed
+9 -12

No files matched your search

@@ -30,6 +30,7 @@
import { publishedToDate } from '$lib/components/util/date'
import { isAdmin } from '../moderation/moderation'
import { block, blockInstance, purgeCommunity } from './CommunityCard.svelte'
import { settings } from '$lib/settings.svelte'
interface Props {
community: Community
@@ -51,7 +52,7 @@
</script>
<EntityHeader
banner={community.banner}
banner={settings.nsfwBlur && community.nsfw ? undefined : community.banner}
avatar={community.icon}
name={community.title}
url="/c/{fullCommunityName(community.name, community.actor_id)}"
@@ -86,7 +86,7 @@
{#if community.community.deleted}
<Icon
src={Trash}
class="text-red-500"
class="text-red-500 inline"
micro
size="14"
title={$t('post.badges.deleted')}
@@ -95,7 +95,7 @@
{#if community.community.nsfw}
<Icon
src={ExclamationTriangle}
class="text-red-500"
class="text-red-500 inline"
micro
size="14"
title={$t('post.badges.nsfw')}
@@ -104,7 +104,7 @@
{#if community.banned_from_community}
<Icon
src={NoSymbol}
class="text-red-500"
class="text-red-500 inline"
micro
size="14"
title={$t('comment.banned')}
@@ -113,7 +113,7 @@
{#if community.community.visibility == 'LocalOnly'}
<Icon
src={MapPin}
class="text-green-500"
class="text-green-500 inline"
micro
size="14"
title={$t('routes.admin.config.listingType.local')}
@@ -43,21 +43,17 @@
/>
<picture class="max-h-[inherit]">
<source
srcset={bestImageURL(post, false, 256)}
srcset={bestImageURL(post, false, 512)}
media="(max-width: 256px)"
/>
<source
srcset={bestImageURL(post, false, 512)}
srcset={bestImageURL(post, false, 1024)}
media="(max-width: 512px)"
/>
<source
srcset={bestImageURL(post, false, 1024)}
srcset={bestImageURL(post, false, 1536)}
media="(max-width: 1024px)"
/>
<source
srcset={bestImageURL(post, false, 1512)}
media="(max-width: 1512px)"
/>
<!-- svelte-ignore a11y_missing_attribute -->
<img
src={bestImageURL(post, false, -1)}