FEAT: Increase pagination limits to improve data display and update version to 1.2.1
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "plunk",
|
||||
"version": "1.2.0",
|
||||
"version": "1.2.1",
|
||||
"private": true,
|
||||
"license": "agpl-3.0",
|
||||
"workspaces": {
|
||||
|
||||
@@ -33,8 +33,8 @@ export class ProjectService {
|
||||
emails: { select: { createdAt: true } },
|
||||
},
|
||||
orderBy: [{ createdAt: "desc" }],
|
||||
take: 20,
|
||||
skip: (page - 1) * 20,
|
||||
take: 100,
|
||||
skip: (page - 1) * 100,
|
||||
});
|
||||
});
|
||||
},
|
||||
|
||||
@@ -237,8 +237,8 @@ export default function Index() {
|
||||
<nav className="flex items-center justify-between py-3" aria-label="Pagination">
|
||||
<div className="hidden sm:block">
|
||||
<p className="text-sm text-neutral-700">
|
||||
Showing <span className="font-medium">{(page - 1) * 20}</span> to{" "}
|
||||
<span className="font-medium">{page * 20}</span> of <span className="font-medium">{filtered.length}</span>{" "}
|
||||
Showing <span className="font-medium">{(page - 1) * 100}</span> to{" "}
|
||||
<span className="font-medium">{page * 100}</span> of <span className="font-medium">{contacts.count}</span>{" "}
|
||||
contacts
|
||||
</p>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user