feat: redesign communityitem

This commit is contained in:
Xylight committed 2024-03-09 10:59:58 -08:00
1 parent 371fc4a28b
commit b79496a1c9
4 files changed
+36 -29

No files matched your search

@@ -13,7 +13,8 @@
<a
{...$$restProps}
class="items-center flex flex-row gap-2 hover:underline flex-shrink-0"
class="items-center flex flex-row gap-2 hover:underline flex-shrink-0 {$$props.class ||
''}"
href="/c/{community.name}@{new URL(community.actor_id).hostname}"
>
{#if avatar}
@@ -26,10 +27,13 @@
{/if}
{#if name}
<span class="flex gap-0">
<span class="flex gap-0 items-center">
{#if showInstance}
<span class="font-medium">{community.title}</span>
<span class="text-slate-500 dark:text-zinc-500 font-normal">
<span
class="text-slate-500 dark:text-zinc-500 font-normal {$$props.instanceClass ||
''}"
>
@{new URL(community.actor_id).hostname}
</span>
{:else}