diff --git a/src/lib/components/Pagination/Pagination.svelte b/src/lib/components/Pagination/Pagination.svelte index e8a735d..743a01d 100644 --- a/src/lib/components/Pagination/Pagination.svelte +++ b/src/lib/components/Pagination/Pagination.svelte @@ -1,111 +1,121 @@
-
-
- +
+
+ -
- {#each getVisiblePages(totalPages, Number(currentPage)) as page} - {#if page === '...'} - ... - {:else} - - {/if} - {/each} -
+
+ {#each getVisiblePages(totalPages, Number(currentPage)) as page} + {#if page === '...'} + ... + {:else} + + {/if} + {/each} +
- -
-
-
- (itemsPerPage = e.detail)} - /> -
-
/ page
-
-
-
+ +
+
+
+ changeItemsPerPage(e.detail)} + /> +
+
/ page
+
+
+ \ No newline at end of file diff --git a/src/routes/admin/users/+page.svelte b/src/routes/admin/users/+page.svelte index fb64f6c..44d7696 100644 --- a/src/routes/admin/users/+page.svelte +++ b/src/routes/admin/users/+page.svelte @@ -1,208 +1,209 @@
-
-

{title}

-

{subtitle}

-
- -
- -
- -
- -
-
- -
-
เลือกทั้งหมด
-
-
-
- - -
- - - {#each filteredUsers as user} -
-
- toggleSelectItem(user.id)} - class="h-4 w-4 rounded border-gray-300" - /> -
-
{user.title}
-
{user.id}
-
สร้างเมื่อ {user.date}
-
- - {user.role} - -
-
- - {#if activePopoverId === user.id} -
-
- - -
-
- {/if} -
-
- {/each} - - -
- user.id)} - itemsPerPage={itemsPerPage.toString()} - on:pageChange={handlePageChange} - /> -
-
-
+
+

{title}

+

{subtitle}

+
+ +
+ +
+ +
+ +
+
+ +
+
เลือกทั้งหมด
+
+
+
+ + +
+ + + {#each filteredUsers as user} +
+
+ toggleSelectItem(user.id)} + class="h-4 w-4 rounded border-gray-300" + /> +
+
{user.title}
+
{user.id}
+
สร้างเมื่อ {user.date}
+
+ + {user.role} + +
+
+ + {#if activePopoverId === user.id} +
+
+ + +
+
+ {/if} +
+
+ {/each} + + +
+ user.id)} + on:pageChange={handlePageChange} + /> +
+
+ \ No newline at end of file