From c604a107f593d6952721ea46f3cb53b3631a5bf4 Mon Sep 17 00:00:00 2001 From: Xylight Date: Sat, 6 Jan 2024 14:11:41 -0800 Subject: [PATCH] design: declutter community card --- .../lemmy/community/CommunityCard.svelte | 91 +++++++++---------- src/lib/components/ui/Expandable.svelte | 2 +- 2 files changed, 46 insertions(+), 47 deletions(-) diff --git a/src/lib/components/lemmy/community/CommunityCard.svelte b/src/lib/components/lemmy/community/CommunityCard.svelte index 640b087d..7ab24086 100644 --- a/src/lib/components/lemmy/community/CommunityCard.svelte +++ b/src/lib/components/lemmy/community/CommunityCard.svelte @@ -39,6 +39,8 @@ } from 'svelte-hero-icons' import { publishedToDate } from '$lib/components/util/date.js' import CommunityLink from './CommunityLink.svelte' + import Expandable from '$lib/components/ui/Expandable.svelte' + import LabelStat from '$lib/components/ui/LabelStat.svelte' export let community_view: CommunityView export let moderators: CommunityModeratorView[] = [] @@ -206,53 +208,50 @@ - - - - -
- - - - - - - - - - - - -
- {#if moderators && moderators.length > 0} -
- Moderators -
- {#each moderators as moderator} - - - - - {moderator.moderator.name} - - {/each} + +
+ + About + + + + + Stats +
+ +
-
- {/if} - + + + {#if moderators && moderators.length > 0} + + Moderators +
+ {#each moderators as moderator} + + + + + {moderator.moderator.name} + + {/each} +
+
+ {/if} +
diff --git a/src/lib/components/ui/Expandable.svelte b/src/lib/components/ui/Expandable.svelte index 74eb32f1..22e5aac4 100644 --- a/src/lib/components/ui/Expandable.svelte +++ b/src/lib/components/ui/Expandable.svelte @@ -5,7 +5,7 @@ - +