From 0425815b30901a0cbf66b952fd5151fcb7acac67 Mon Sep 17 00:00:00 2001 From: Spectralitree <72747870+Spectralitree@users.noreply.github.com> Date: Tue, 21 Dec 2021 00:21:26 +0100 Subject: [PATCH] feat: smaller pagination! --- src/lib/ListPagination.svelte | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/lib/ListPagination.svelte b/src/lib/ListPagination.svelte index d20fdf37..65392242 100644 --- a/src/lib/ListPagination.svelte +++ b/src/lib/ListPagination.svelte @@ -3,9 +3,11 @@ import { Pagination, PaginationItem, PaginationLink } from "sveltestrap"; export let currentPage: number; export let pageAmount: number; - +export let smallPages: boolean = false; - + +{#if pageAmount > 1} + {#if currentPage !== 1} {e.preventDefault(); currentPage -= 1}}>