From 3749bf333307ec9e56c15114c221964d2d121886 Mon Sep 17 00:00:00 2001 From: Xyphyn Date: Thu, 12 Oct 2023 15:50:04 -0700 Subject: [PATCH] feat: add information button in community list --- .../lemmy/community/CommunityItem.svelte | 20 +++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/src/lib/components/lemmy/community/CommunityItem.svelte b/src/lib/components/lemmy/community/CommunityItem.svelte index 47295b60..f0e96aea 100644 --- a/src/lib/components/lemmy/community/CommunityItem.svelte +++ b/src/lib/components/lemmy/community/CommunityItem.svelte @@ -6,19 +6,28 @@ ChatBubbleOvalLeftEllipsis, Check, Icon, + InformationCircle, PencilSquare, Plus, UserGroup, } from 'svelte-hero-icons' import FormattedNumber from '$lib/components/util/FormattedNumber.svelte' - import { Button } from 'mono-svelte' + import { Button, Modal } from 'mono-svelte' import { isSubscribed } from '$lib/util.js' import { profile } from '$lib/auth.js' import { addSubscription } from '$lib/lemmy/user.js' + import Avatar from '$lib/components/ui/Avatar.svelte' + import CommunityCard from '$lib/components/lemmy/community/CommunityCard.svelte' export let community: CommunityView + + let showInfo = false + + + +
-
+
+
- - {new URL(community.community.actor_id).hostname} + + !{community.community.name}@{new URL(community.community.actor_id).hostname}