misc: remove instane name in communities page
This commit is contained in:
1 parent
8692e4ac08
commit
d43447b3f9
3 files changed
+8
-3
No files matched your search
@@ -6,6 +6,7 @@
|
||||
export let community: Community
|
||||
export let avatar: boolean = false
|
||||
export let avatarSize: number = 24
|
||||
export let showInstance: boolean | undefined = undefined
|
||||
|
||||
function linkFromCommunity(community: Community) {
|
||||
const domain = new URL(community.actor_id).hostname
|
||||
@@ -27,7 +28,7 @@
|
||||
{/if}
|
||||
|
||||
<span class="flex gap-0">
|
||||
{#if $userSettings.showInstances.community}
|
||||
{#if showInstance != undefined ? showInstance : $userSettings.showInstances.community}
|
||||
{community.title}
|
||||
<span class="text-slate-500 dark:text-zinc-500 font-normal">
|
||||
@{new URL(community.actor_id).hostname}
|
||||
|
||||
@@ -77,7 +77,11 @@
|
||||
<span
|
||||
class="break-words max-w-full w-max text-base font-bold text-sky-400 hover:underline"
|
||||
>
|
||||
<CommunityLink avatar community={community.community} />
|
||||
<CommunityLink
|
||||
showInstance={false}
|
||||
avatar
|
||||
community={community.community}
|
||||
/>
|
||||
</span>
|
||||
<div class="ml-auto">
|
||||
<Subscribe {community} let:subscribe let:subscribing>
|
||||
|
||||
Reference in new issue
Block a user