misc: set showInstance to false in search page

This commit is contained in:
Xyphyn committed 2023-08-12 10:19:23 -07:00
1 parent dca0edf0b1
commit ddf4ade717
2 files changed
+8 -8

No files matched your search

@@ -22,7 +22,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>
+3 -7
View File
@@ -12,6 +12,7 @@
import Pageination from '$lib/components/ui/Pageination.svelte'
import Spinner from '$lib/components/ui/loader/Spinner.svelte'
import { isComment, isCommunity, isPost, isUser } from '$lib/lemmy/item.js'
import { searchParam } from '$lib/util.js'
import type {
CommentView,
CommunityView,
@@ -84,7 +85,7 @@
{:else}
{#await data.streamed.object}
<div
class="flex gap-4 items-center mt-4"
class="flex gap-2 items-center mt-4"
out:slide={{ axis: 'y', easing: expoOut }}
>
<Spinner width={24} />
@@ -125,12 +126,7 @@
{#if data.results.length > 0}
<Pageination
bind:page={pageNum}
on:change={(p) => {
$page.url.searchParams.set('page', p.detail.toString())
goto($page.url, {
invalidateAll: true,
})
}}
on:change={(p) => searchParam($page.url, 'page', p.detail.toString())}
/>
{/if}
{/if}