impr: use Fixate component
This commit is contained in:
23 files changed
+66
-63
No files matched your search
@@ -21,6 +21,4 @@
|
||||
},
|
||||
]}
|
||||
/>
|
||||
<div class="w-full space-y-4 pb-8">
|
||||
{@render children?.()}
|
||||
</div>
|
||||
{@render children?.()}
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user