Skip to content

Commit 5cb3237

Browse files
authored
Merge pull request #895 from supertokens/fix/form-responsive
Fix two column responsive layout
2 parents f80093d + 4e70999 commit 5cb3237

File tree

4 files changed

+46
-6
lines changed

4 files changed

+46
-6
lines changed

v3/docs/post-authentication/session-management/session-invalidation/revoke-a-session.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,7 @@ import { superTokensNextWrapper } from 'supertokens-node/nextjs'
344344
import { verifySession } from "supertokens-node/recipe/session/framework/express";
345345
import { SessionRequest } from "supertokens-node/framework/express";
346346

347+
// The following example uses the NextJS Page Router configuration
347348
// highlight-start
348349
export default async function someapi(req: SessionRequest, res: any) {
349350
await superTokensNextWrapper(

v3/src/components/AppInfoForm/AppInfoForm.tsx

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,13 @@ export function AppInfoForm() {
4949
configure. To learn more about what each field means check the{" "}
5050
<a href="/docs/thirdpartyemailpassword/appinfo">references page</a>.
5151
</Text>
52-
<Grid columns="repeat(2, 1fr)" gap="4">
52+
<Grid
53+
columns={{
54+
initial: "repeat(1, 1fr)",
55+
lg: "repeat(2, 1fr)",
56+
}}
57+
gap="4"
58+
>
5359
<Form.Field name="appName" asChild>
5460
<Flex gap="1" direction="column">
5561
<Form.Label>
@@ -73,7 +79,13 @@ export function AppInfoForm() {
7379
</Form.Field>
7480
</Grid>
7581
<Separator size="4" my="2" />
76-
<Grid columns="repeat(2, 1fr)" gap="4">
82+
<Grid
83+
columns={{
84+
initial: "repeat(1, 1fr)",
85+
lg: "repeat(2, 1fr)",
86+
}}
87+
gap="4"
88+
>
7789
<Form.Field name="apiDomain" asChild>
7890
<Flex gap="1" direction="column">
7991
<Form.Label>

v3/src/components/Forms/ExampleAppForm.tsx

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,14 @@ function ExampleAppFormRoot() {
6767
Update the form based on your tech stack and requirements. Once
6868
you're done, copy the command and run it in your terminal.
6969
</Text>
70-
<Grid columns="repeat(2, 1fr)" mt="2" gap="4">
70+
<Grid
71+
columns={{
72+
initial: "repeat(1, 1fr)",
73+
lg: "repeat(2, 1fr)",
74+
}}
75+
mt="2"
76+
gap="4"
77+
>
7178
<Form.Field name="appName" asChild>
7279
<Flex gap="1" direction="column">
7380
<Form.Label>
@@ -120,7 +127,13 @@ function ExampleAppFormRoot() {
120127
</Flex>
121128
</Form.Field>
122129
</Grid>
123-
<Grid columns="repeat(2, 1fr)" gap="4">
130+
<Grid
131+
columns={{
132+
initial: "repeat(1, 1fr)",
133+
lg: "repeat(2, 1fr)",
134+
}}
135+
gap="4"
136+
>
124137
<Form.Field name="frontendFramework" asChild>
125138
<Flex gap="1" direction="column">
126139
<Form.Label>

v3/src/components/SDKCompatibilityTable.tsx

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,14 @@ export function SDKCompatibilityTable() {
8787
available versions.
8888
</Text>
8989
<Separator size="4" mt="3" mb="1" />
90-
<Grid columns="repeat(2, 1fr)" gap="4" mt="2">
90+
<Grid
91+
columns={{
92+
initial: "repeat(1, 1fr)",
93+
lg: "repeat(2, 1fr)",
94+
}}
95+
gap="4"
96+
mt="2"
97+
>
9198
<Form.Field name="backend-sdk" asChild>
9299
<Flex gap="1" direction="column">
93100
<Form.Label>
@@ -150,7 +157,14 @@ export function SDKCompatibilityTable() {
150157
</Card>
151158
</Box>
152159

153-
<Grid columns="repeat(2, 1fr)" gap="4" mt="5">
160+
<Grid
161+
columns={{
162+
initial: "repeat(1, 1fr)",
163+
lg: "repeat(2, 1fr)",
164+
}}
165+
gap="4"
166+
mt="5"
167+
>
154168
<Box px="5" py="5" asChild>
155169
<Form.Root asChild>
156170
<ScrollArea

0 commit comments

Comments
 (0)