impr: use Fixate component
This commit is contained in:
23 files changed
+66
-63
No files matched your search
@@ -2,6 +2,7 @@
|
||||
import { page } from '$app/state'
|
||||
import CommentItem from '$lib/components/lemmy/comment/CommentItem.svelte'
|
||||
import PostItem from '$lib/components/lemmy/post/PostItem.svelte'
|
||||
import Fixate from '$lib/components/ui/generic/Fixate.svelte'
|
||||
import CommonList from '$lib/components/ui/layout/CommonList.svelte'
|
||||
import Header from '$lib/components/ui/layout/pages/Header.svelte'
|
||||
import Pageination from '$lib/components/ui/Pageination.svelte'
|
||||
@@ -78,10 +79,10 @@
|
||||
{/snippet}
|
||||
</CommonList>
|
||||
{/if}
|
||||
<div class="sticky z-30 mx-auto max-w-full bottom-22 lg:bottom-6">
|
||||
<Fixate placement="bottom">
|
||||
<Pageination
|
||||
hasMore={data.data.length == 40}
|
||||
href={page => `?page=${page}`}
|
||||
page={data.page}
|
||||
/>
|
||||
</div>
|
||||
</Fixate>
|
||||
@@ -26,7 +26,7 @@ export async function load({ url, fetch }) {
|
||||
const { posts, comments } = await client({ func: fetch }).getPersonDetails({
|
||||
saved_only: true,
|
||||
limit: 20,
|
||||
page: 1,
|
||||
page: page,
|
||||
person_id: user?.local_user_view.person.id,
|
||||
})
|
||||
|
||||
|
||||
Reference in new issue
Block a user