Skip to content

Commit 196f677

Browse files
committed
Fix LoadingCard size on mobile in login page + match LoadingCard size to ConnectEmbed (#5704)
Fixes: DASH-586
1 parent f701b2d commit 196f677

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

apps/dashboard/src/app/login/LoginPage.tsx

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,15 @@ export function LoginAndOnboardingPage(props: {
7777
</header>
7878
</div>
7979

80-
<main className="container z-10 flex grow flex-col items-center justify-center gap-6 py-12">
81-
<ClientOnly ssr={<LoadingCard />}>
80+
<main className="container z-10 flex grow flex-col justify-center gap-6 py-12">
81+
<ClientOnly
82+
ssr={
83+
<div className="flex justify-center">
84+
<LoadingCard />
85+
</div>
86+
}
87+
className="flex justify-center"
88+
>
8289
<PageContent
8390
redirectPath={props.redirectPath}
8491
account={props.account}
@@ -94,7 +101,7 @@ export function LoginAndOnboardingPage(props: {
94101
/>
95102

96103
<Aurora
97-
color="hsl(var(--foreground)/9%)"
104+
color="hsl(var(--foreground)/7%)"
98105
pos={{ top: "55%", left: "50%" }}
99106
size={{ width: "1400px", height: "1300px" }}
100107
/>
@@ -104,7 +111,7 @@ export function LoginAndOnboardingPage(props: {
104111

105112
function LoadingCard() {
106113
return (
107-
<div className="flex min-h-[450px] w-full items-center justify-center rounded-xl border border-border bg-background shadow-lg lg:w-[500px]">
114+
<div className="flex min-h-[522px] w-full items-center justify-center rounded-xl border border-border bg-background shadow-lg max-sm:max-w-[358px] lg:min-h-[568px] lg:w-[728px]">
108115
<Spinner className="size-10" />
109116
</div>
110117
);

0 commit comments

Comments
 (0)