design: make pageination more consistent with other floats

This commit is contained in:
James Xylight committed 2025-09-05 16:42:09 -07:00
1 parent 57d2bf5e72
commit 63eafdd1e1
6 files changed
+70 -59

No files matched your search

+3 -2
View File
@@ -17,6 +17,7 @@
import { expoOut } from 'svelte/easing'
import { fly } from 'svelte/transition'
import SearchBar from '../search/SearchBar.svelte'
import Fixate from '$lib/components/ui/generic/Fixate.svelte'
let { data } = $props()
@@ -157,10 +158,10 @@
</ul>
{/if}
{#if data.communities.value.length > 0}
<div class="sticky z-30 mx-auto max-w-full bottom-22 lg:bottom-6">
<Fixate placement="bottom">
<Pageination
page={Number(page.url.searchParams.get('page')) || 1}
href={c => `?page=${c}`}
/>
</div>
</Fixate>
{/if}
@@ -35,9 +35,11 @@
<Header pageHeader>
{routes.find(r => page.url.pathname == r.href)?.name ??
$t('routes.profile.credentials')}
{#snippet extended()}
<Tabs style="subpage" margin={false} {routes}></Tabs>
{/snippet}
</Header>
<Tabs style="subpage" {routes}></Tabs>
<div
class={[
page.url.pathname == '/profile/password' && ' p-8',
+1
View File
@@ -67,6 +67,7 @@
icon={Bookmark}
title="No saved items"
description="Save posts or comments, and they'll be here to refer to them later."
class="my-auto"
/>
{:else}
<CommonList items={data.data} size="lg">