impr: black out nsfw community icons, close #536

This commit is contained in:
James Xylight committed 2025-06-25 17:18:38 -07:00
1 parent d25cfc2be4
commit f21b843cb5
2 files changed
+24 -8

No files matched your search

+17 -7
View File
@@ -150,13 +150,23 @@
'bg-slate-200 dark:bg-zinc-800 rounded-lg cursor-pointer',
]}
>
<Avatar
url={community?.icon}
width={view == 'compact' ? 24 : 32}
alt={community?.name}
circle={false}
class="group-hover/btn:scale-90 group-active/btn:scale-[.85] transition-transform"
/>
{#if community.nsfw && settings.nsfwBlur}
<div
style="width: {view == 'compact' ? 24 : 32}; height: {view ==
'compact'
? 24
: 32}"
class="bg-red-400 rounded-xl"
></div>
{:else}
<Avatar
url={community?.icon}
width={view == 'compact' ? 24 : 32}
alt={community?.name}
circle={false}
class="group-hover/btn:scale-90 group-active/btn:scale-[.85] transition-transform"
/>
{/if}
</button>
{/snippet}
{#snippet popover()}