From 0c02b510ee24a6e4d98b7b06fe631cd547ccf49f Mon Sep 17 00:00:00 2001 From: Xylight Date: Sun, 18 Aug 2024 15:19:40 -0700 Subject: [PATCH] misc: update community reuslts --- .../lemmy/community/CommunityItem.svelte | 48 ++++++++++++------- src/routes/communities/+page.svelte | 27 ++++++++--- 2 files changed, 52 insertions(+), 23 deletions(-) diff --git a/src/lib/components/lemmy/community/CommunityItem.svelte b/src/lib/components/lemmy/community/CommunityItem.svelte index 19f9be8b..645b9870 100644 --- a/src/lib/components/lemmy/community/CommunityItem.svelte +++ b/src/lib/components/lemmy/community/CommunityItem.svelte @@ -43,8 +43,8 @@
-
+
+
{community.community.title}
-
- {new URL(community.community.actor_id).hostname} - {#if !showCounts} - • - - {/if} +
+ + {new URL(community.community.actor_id).hostname} + + + {#if !showCounts} + • + + {/if} +
@@ -103,10 +112,15 @@ ) } }} + size="custom" + title={isSubscribed(community.subscribed) + ? $t('cards.community.subscribed') + : $t('cards.community.subscribe')} color={isSubscribed(community.subscribed) ? 'elevatedLow' : 'primary'} - class={isSubscribed(community.subscribed) + class="{isSubscribed(community.subscribed) ? 'text-slate-600 dark:text-zinc-400' : ''} + aspect-square h-8 @md:px-2 @md:min-w-32 @md:aspect-auto" > - {#if isSubscribed(community.subscribed)} - {$t('cards.community.subscribed')} - {:else} - {$t('cards.community.subscribe')} - {/if} +
diff --git a/src/routes/communities/+page.svelte b/src/routes/communities/+page.svelte index ed964fa3..422d3953 100644 --- a/src/routes/communities/+page.svelte +++ b/src/routes/communities/+page.svelte @@ -24,8 +24,13 @@ let search = data.query || '' let instance = '' + + let virtualList: HTMLDivElement + let offset: number = 0 + + {$t('routes.communities')} @@ -92,7 +97,9 @@
-