Skip to content

Commit 2c64a65

Browse files
committed
Add overflow-x-hidden to body and also change the page size to 100 in /members page
1 parent 07fc9b6 commit 2c64a65

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

src/pages/_document.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class MyDocument extends Document {
5656
></script>
5757
<script src="https://unpkg.com/phosphor-icons" defer></script>
5858
</Head>
59-
<body className="bg-gray-50">
59+
<body className="bg-gray-50 overflow-x-hidden">
6060
<Main />
6161
<NextScript />
6262
</body>

src/pages/api/fauna/members.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,12 @@ const FaunaCreateHandler: NextApiHandler = async (
2121

2222
try {
2323
const response: any = await client.query(
24-
q.Map(q.Paginate(q.Documents(q.Collection('users'))), (userRef) => {
25-
return getUserFromUserRef({ ref: userRef, session })
26-
})
24+
q.Map(
25+
q.Paginate(q.Documents(q.Collection('users')), { size: 100 }),
26+
(userRef) => {
27+
return getUserFromUserRef({ ref: userRef, session })
28+
}
29+
)
2730
)
2831
const users: User[] = response.data
2932

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy