misc: set showInstance to false in search page
This commit is contained in:
1 parent
dca0edf0b1
commit
ddf4ade717
2 files changed
+8
-8
No files matched your search
@@ -22,7 +22,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>
|
||||||
|
|||||||
@@ -12,6 +12,7 @@
|
|||||||
import Pageination from '$lib/components/ui/Pageination.svelte'
|
import Pageination from '$lib/components/ui/Pageination.svelte'
|
||||||
import Spinner from '$lib/components/ui/loader/Spinner.svelte'
|
import Spinner from '$lib/components/ui/loader/Spinner.svelte'
|
||||||
import { isComment, isCommunity, isPost, isUser } from '$lib/lemmy/item.js'
|
import { isComment, isCommunity, isPost, isUser } from '$lib/lemmy/item.js'
|
||||||
|
import { searchParam } from '$lib/util.js'
|
||||||
import type {
|
import type {
|
||||||
CommentView,
|
CommentView,
|
||||||
CommunityView,
|
CommunityView,
|
||||||
@@ -84,7 +85,7 @@
|
|||||||
{:else}
|
{:else}
|
||||||
{#await data.streamed.object}
|
{#await data.streamed.object}
|
||||||
<div
|
<div
|
||||||
class="flex gap-4 items-center mt-4"
|
class="flex gap-2 items-center mt-4"
|
||||||
out:slide={{ axis: 'y', easing: expoOut }}
|
out:slide={{ axis: 'y', easing: expoOut }}
|
||||||
>
|
>
|
||||||
<Spinner width={24} />
|
<Spinner width={24} />
|
||||||
@@ -125,12 +126,7 @@
|
|||||||
{#if data.results.length > 0}
|
{#if data.results.length > 0}
|
||||||
<Pageination
|
<Pageination
|
||||||
bind:page={pageNum}
|
bind:page={pageNum}
|
||||||
on:change={(p) => {
|
on:change={(p) => searchParam($page.url, 'page', p.detail.toString())}
|
||||||
$page.url.searchParams.set('page', p.detail.toString())
|
|
||||||
goto($page.url, {
|
|
||||||
invalidateAll: true,
|
|
||||||
})
|
|
||||||
}}
|
|
||||||
/>
|
/>
|
||||||
{/if}
|
{/if}
|
||||||
{/if}
|
{/if}
|
||||||
Reference in new issue
Block a user