fix(web): add provider wizard no longer shifts sideways while it grows (#17292)

This commit is contained in:
oliver authored and GitHub committed 2026-10-10 02:21:14 -05:00
1 parent 65d33177b7
commit 500cb4266f
1 file changed
+5 -8
+5 -8
View File
@@ -4,6 +4,7 @@ import type { ComponentProps, ReactNode } from "react";
import { cn } from "../../lib/utils";
import { AnimatedHeight } from "../AnimatedHeight";
import { DialogPopup, DialogHeader, DialogTitle, DialogDescription, DialogFooter } from "./dialog";
import { ScrollArea } from "./scroll-area";
/** Compose a wizard from its header, panel, and footer; flow logic stays with the caller. */
export function WizardPopup({
@@ -14,14 +15,10 @@ export function WizardPopup({
readonly size?: "default" | "wide";
}) {
return (
<DialogPopup
{...props}
className={cn(
"overflow-x-hidden overflow-y-auto",
size === "wide" ? "max-w-3xl" : "max-w-xl",
)}
>
<div className="flex min-h-0 flex-col">{children}</div>
<DialogPopup {...props} className={size === "wide" ? "max-w-3xl" : "max-w-xl"}>
<ScrollArea className="*:data-[slot=scroll-area-scrollbar]:data-[orientation=vertical]:my-4">
<div className="flex min-h-0 flex-col">{children}</div>
</ScrollArea>
</DialogPopup>
);
}