feat: smaller pagination!

This commit is contained in:
Spectralitree 2021-12-21 00:21:26 +01:00
parent 8a359ae310
commit 0425815b30

View File

@ -3,9 +3,11 @@ import { Pagination, PaginationItem, PaginationLink } from "sveltestrap";
export let currentPage: number; export let currentPage: number;
export let pageAmount: number; export let pageAmount: number;
</script> export let smallPages: boolean = false;
<Pagination class="mx-auto" arialabel="member list page navigation"> </script>
{#if pageAmount > 1}
<Pagination size={smallPages ? "sm" : ""} class="mx-auto" arialabel="member list page navigation">
{#if currentPage !== 1} {#if currentPage !== 1}
<PaginationItem> <PaginationItem>
<PaginationLink href="#" previous on:click={(e) => {e.preventDefault(); currentPage -= 1}}></PaginationLink> <PaginationLink href="#" previous on:click={(e) => {e.preventDefault(); currentPage -= 1}}></PaginationLink>