Skip to content

Commit 65e6520

Browse files
committed
refactor: update layout and card components for improved responsiveness
- Increased maximum widths for card components in PostPaymentOnboarding and OrganizationSetupForm to enhance layout flexibility. - Adjusted the OnboardingLayout to center children elements and add padding for better visual alignment. - Improved overall user experience by ensuring components adapt more effectively to different screen sizes.
1 parent eb9bcab commit 65e6520

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

apps/app/src/app/(app)/onboarding/components/PostPaymentOnboarding.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ export function PostPaymentOnboarding({
6363

6464
return (
6565
<div className="scrollbar-hide flex min-h-[calc(100vh-50px)] flex-col items-center justify-center p-4">
66-
<div className="relative w-full max-w-2xl">
67-
<Card className="scrollbar-hide relative flex w-full flex-col bg-card/80 dark:bg-card/70 backdrop-blur-xl border border-border/50 shadow-2xl">
66+
<div className="relative w-full max-w-6xl">
67+
<Card className="scrollbar-hide relative mx-auto flex w-full max-w-3xl flex-col bg-card/80 dark:bg-card/70 backdrop-blur-xl border border-border/50 shadow-2xl md:w-[680px] lg:w-[820px] xl:w-[920px]">
6868
{(isLoading || isFinalizing) && (
6969
<div className="absolute inset-0 z-50 flex items-center justify-center rounded-lg bg-background/80 backdrop-blur-sm">
7070
<LogoSpinner />

apps/app/src/app/(app)/setup/components/OrganizationSetupForm.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@ export function OrganizationSetupForm({
9595
</div>
9696
) : (
9797
<div className="scrollbar-hide flex min-h-[calc(100vh-50px)] flex-col items-center justify-center p-4">
98-
<div className="relative w-full max-w-2xl">
99-
<Card className="scrollbar-hide relative flex w-full flex-col bg-card/80 dark:bg-card/70 backdrop-blur-xl border border-border/50 shadow-2xl">
98+
<div className="relative w-full max-w-5xl">
99+
<Card className="scrollbar-hide relative mx-auto flex w-full min-w-[640px] sm:min-w-[720px] flex-col bg-card/80 dark:bg-card/70 backdrop-blur-xl border border-border/50 shadow-2xl">
100100
{isLoadingFrameworks && step.key === 'frameworkIds' && (
101101
<div className="absolute inset-0 z-50 flex items-center justify-center rounded-lg bg-background/80 backdrop-blur-sm">
102102
<LogoSpinner />

apps/app/src/components/onboarding/OnboardingLayout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export async function OnboardingLayout({
3939
currentOrganization={currentOrganization}
4040
variant={variant}
4141
/>
42-
<div className="flex flex-1">{children}</div>
42+
<div className="flex flex-1 items-center justify-center px-4">{children}</div>
4343
</main>
4444
);
4545
}

0 commit comments

Comments
 (0)