Skip to content

Commit e1a5df7

Browse files
committed
fix(*): Apply vertical margin to screen children via styles (.fui-screen__children)
1 parent a609c14 commit e1a5df7

File tree

6 files changed

+11
-7
lines changed

6 files changed

+11
-7
lines changed

packages/react/src/auth/screens/email-link-auth-screen.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export function EmailLinkAuthScreen({ children, onEmailSent }: EmailLinkAuthScre
4141
{children ? (
4242
<>
4343
<Divider>{getTranslation(ui, "messages", "dividerOr")}</Divider>
44-
<div className="space-y-4">{children}</div>
44+
<div className="fui-screen__children">{children}</div>
4545
</>
4646
) : null}
4747
</CardContent>

packages/react/src/auth/screens/oauth-screen.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export function OAuthScreen({ children }: OAuthScreenProps) {
3535
<CardTitle>{titleText}</CardTitle>
3636
<CardSubtitle>{subtitleText}</CardSubtitle>
3737
</CardHeader>
38-
<CardContent>
38+
<CardContent className="fui-screen__children">
3939
{children}
4040
<Policies />
4141
</CardContent>

packages/react/src/auth/screens/phone-auth-screen.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export function PhoneAuthScreen({ children, ...props }: PhoneAuthScreenProps) {
4141
{children ? (
4242
<>
4343
<Divider>{getTranslation(ui, "messages", "dividerOr")}</Divider>
44-
<div className="space-y-4">{children}</div>
44+
<div className="fui-screen__children">{children}</div>
4545
</>
4646
) : null}
4747
</CardContent>

packages/react/src/auth/screens/sign-in-auth-screen.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export function SignInAuthScreen({ children, ...props }: SignInAuthScreenProps)
4141
{children ? (
4242
<>
4343
<Divider>{getTranslation(ui, "messages", "dividerOr")}</Divider>
44-
<div className="space-y-4">{children}</div>
44+
<div className="fui-screen__children">{children}</div>
4545
</>
4646
) : null}
4747
</CardContent>

packages/react/src/auth/screens/sign-up-auth-screen.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export function SignUpAuthScreen({ children, ...props }: SignUpAuthScreenProps)
4141
{children ? (
4242
<>
4343
<Divider>{getTranslation(ui, "messages", "dividerOr")}</Divider>
44-
<div className="space-y-4">{children}</div>
44+
<div className="fui-screen__children">{children}</div>
4545
</>
4646
) : null}
4747
</CardContent>

packages/styles/src/base.css

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,10 @@
7979
@apply pt-24 max-w-md mx-auto;
8080
}
8181

82+
:where(.fui-screen .fui-screen__children) {
83+
@apply space-y-2;
84+
}
85+
8286
:where(.fui-card) {
8387
@apply bg-background p-10 border border-border rounded-card space-y-6;
8488
}
@@ -145,15 +149,15 @@
145149
}
146150

147151
:where(.fui-divider) {
148-
@apply flex items-center gap-3;
152+
@apply flex items-center gap-3 my-4;
149153
}
150154

151155
:where(.fui-divider__line) {
152156
@apply flex-1 h-px bg-border;
153157
}
154158

155159
:where(.fui-divider__text) {
156-
@apply text-text-muted text-xs my-2;
160+
@apply text-text-muted text-xs;
157161
}
158162

159163
:where(.fui-phone-input) {

0 commit comments

Comments
 (0)