Skip to content

Commit 500cb42

Browse files
authored
fix(web): add provider wizard no longer shifts sideways while it grows (#17292)
1 parent 65d3317 commit 500cb42

1 file changed

Lines changed: 5 additions & 8 deletions

File tree

‎apps/web/src/components/ui/wizard.tsx‎

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import type { ComponentProps, ReactNode } from "react";
44
import { cn } from "../../lib/utils";
55
import { AnimatedHeight } from "../AnimatedHeight";
66
import { DialogPopup, DialogHeader, DialogTitle, DialogDescription, DialogFooter } from "./dialog";
7+
import { ScrollArea } from "./scroll-area";
78

89
/** Compose a wizard from its header, panel, and footer; flow logic stays with the caller. */
910
export function WizardPopup({
@@ -14,14 +15,10 @@ export function WizardPopup({
1415
readonly size?: "default" | "wide";
1516
}) {
1617
return (
17-
<DialogPopup
18-
{...props}
19-
className={cn(
20-
"overflow-x-hidden overflow-y-auto",
21-
size === "wide" ? "max-w-3xl" : "max-w-xl",
22-
)}
23-
>
24-
<div className="flex min-h-0 flex-col">{children}</div>
18+
<DialogPopup {...props} className={size === "wide" ? "max-w-3xl" : "max-w-xl"}>
19+
<ScrollArea className="*:data-[slot=scroll-area-scrollbar]:data-[orientation=vertical]:my-4">
20+
<div className="flex min-h-0 flex-col">{children}</div>
21+
</ScrollArea>
2522
</DialogPopup>
2623
);
2724
}

0 commit comments

Comments
 (0)