diff --git a/web/src/lib/components/profile/PagedList.svelte b/web/src/lib/components/profile/PagedList.svelte index 0d45c4db4..e63952619 100644 --- a/web/src/lib/components/profile/PagedList.svelte +++ b/web/src/lib/components/profile/PagedList.svelte @@ -112,7 +112,6 @@ labels disabled={loading} onchange={(target) => void select(target)} - class="gap-lg" /> {/if} diff --git a/web/src/lib/components/repo/CommitLogView.svelte b/web/src/lib/components/repo/CommitLogView.svelte index 2061c8d1b..c7e9b8e28 100644 --- a/web/src/lib/components/repo/CommitLogView.svelte +++ b/web/src/lib/components/repo/CommitLogView.svelte @@ -67,6 +67,6 @@ {#if pageCount > 1}
- +
{/if} diff --git a/web/src/lib/components/repo/FileHistoryView.svelte b/web/src/lib/components/repo/FileHistoryView.svelte index 69cd7ca50..c4d4bce74 100644 --- a/web/src/lib/components/repo/FileHistoryView.svelte +++ b/web/src/lib/components/repo/FileHistoryView.svelte @@ -90,6 +90,6 @@ {#if pageCount > 1}
- +
{/if} diff --git a/web/src/lib/components/ui/Pagination.svelte b/web/src/lib/components/ui/Pagination.svelte index 9998c7fc6..681a22fa6 100644 --- a/web/src/lib/components/ui/Pagination.svelte +++ b/web/src/lib/components/ui/Pagination.svelte @@ -16,10 +16,15 @@ selected: { true: { page: "font-medium text-foreground-default hover:bg-transparent" }, false: { page: "text-foreground-muted hover:text-foreground-default" } + }, + labels: { + true: { nav: "gap-lg" }, + false: {} } }, defaultVariants: { - selected: false + selected: false, + labels: false } }); @@ -117,7 +122,7 @@ const spent = (can: boolean) => (disabled || !can ? "true" : undefined); - const style = $derived(pagination()); + const style = $derived(pagination({ labels }));