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
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "photon-lemmy",
|
"name": "photon-lemmy",
|
||||||
"version": "0.5.2",
|
"version": "0.5.3",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite dev",
|
"dev": "vite dev",
|
||||||
|
|||||||
@@ -6,6 +6,7 @@
|
|||||||
export let community: Community
|
export let community: Community
|
||||||
export let avatar: boolean = false
|
export let avatar: boolean = false
|
||||||
export let avatarSize: number = 24
|
export let avatarSize: number = 24
|
||||||
|
export let showInstance: boolean | undefined = undefined
|
||||||
|
|
||||||
function linkFromCommunity(community: Community) {
|
function linkFromCommunity(community: Community) {
|
||||||
const domain = new URL(community.actor_id).hostname
|
const domain = new URL(community.actor_id).hostname
|
||||||
@@ -27,7 +28,7 @@
|
|||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
<span class="flex gap-0">
|
<span class="flex gap-0">
|
||||||
{#if $userSettings.showInstances.community}
|
{#if showInstance != undefined ? showInstance : $userSettings.showInstances.community}
|
||||||
{community.title}
|
{community.title}
|
||||||
<span class="text-slate-500 dark:text-zinc-500 font-normal">
|
<span class="text-slate-500 dark:text-zinc-500 font-normal">
|
||||||
@{new URL(community.actor_id).hostname}
|
@{new URL(community.actor_id).hostname}
|
||||||
|
|||||||
@@ -77,7 +77,11 @@
|
|||||||
<span
|
<span
|
||||||
class="break-words max-w-full w-max text-base font-bold text-sky-400 hover:underline"
|
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>
|
</span>
|
||||||
<div class="ml-auto">
|
<div class="ml-auto">
|
||||||
<Subscribe {community} let:subscribe let:subscribing>
|
<Subscribe {community} let:subscribe let:subscribing>
|
||||||
|
|||||||
Reference in new issue
Block a user