impr: use Fixate component

This commit is contained in:
James Xylight committed 2025-08-30 15:11:35 -07:00
1 parent d93d29a8b1
commit e4c8d667f7
23 files changed
+66 -63

No files matched your search

+1 -3
View File
@@ -21,6 +21,4 @@
},
]}
/>
<div class="w-full space-y-4 pb-8">
{@render children?.()}
</div>
{@render children?.()}
+8 -5
View File
@@ -15,6 +15,7 @@
import { tick } from 'svelte'
import { Check, Funnel, Icon, ShieldCheck, XMark } from 'svelte-hero-icons'
import Report from './Report.svelte'
import Fixate from '$lib/components/ui/generic/Fixate.svelte'
let { data = $bindable() } = $props()
@@ -153,11 +154,13 @@
{/if}
{/snippet}
</CommonList>
<Pageination
page={data.page}
href={current => `?page=${current}`}
hasMore={data.items.value.length >= 20}
/>
<Fixate placement="bottom">
<Pageination
page={data.page}
href={current => `?page=${current}`}
hasMore={data.items.value.length >= 20}
/>
</Fixate>
{:else}
<div class="h-full grid place-items-center">
<Placeholder