Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8e79dbb

Browse files
authored
fix: prevent unruly stacking contexts from breaking scrolling (#19785)
1 parent 336e62b commit 8e79dbb

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

site/src/components/MultiSelectCombobox/MultiSelectCombobox.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -706,3 +706,5 @@ export const MultiSelectCombobox = forwardRef<
706706
);
707707
},
708708
);
709+
710+
MultiSelectCombobox.displayName = "MultiSelectCombobox";

site/src/modules/dashboard/DashboardLayout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export const DashboardLayout: FC = () => {
2626
<div className="flex flex-col h-screen justify-between">
2727
<Navbar />
2828

29-
<div className="flex flex-col flex-1 min-h-0 overflow-y-auto">
29+
<div className="relative flex flex-col flex-1 min-h-0 overflow-y-auto">
3030
<Suspense fallback={<Loader />}>
3131
<Outlet />
3232
</Suspense>

site/src/pages/CreateWorkspacePage/CreateWorkspacePageViewExperimental.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ export const CreateWorkspacePageViewExperimental: FC<
340340
});
341341

342342
return (
343-
<div className="flex flex-col flex-1 min-h-0 pb-12">
343+
<>
344344
<div className="sticky top-5 ml-10">
345345
<button
346346
onClick={onCancel}
@@ -351,7 +351,7 @@ export const CreateWorkspacePageViewExperimental: FC<
351351
Go back
352352
</button>
353353
</div>
354-
<div className="flex flex-col flex-1 min-h-0 gap-6 max-w-screen-md mx-auto">
354+
<div className="flex flex-col gap-6 max-w-screen-md mx-auto">
355355
<header className="flex flex-col items-start gap-3 mt-10">
356356
<div className="flex items-center gap-2 justify-between w-full">
357357
<span className="flex items-center gap-2">
@@ -412,7 +412,7 @@ export const CreateWorkspacePageViewExperimental: FC<
412412
<form
413413
onSubmit={form.handleSubmit}
414414
aria-label="Create workspace form"
415-
className="relative flex flex-col flex-1 min-h-0 overflow-y-auto gap-10 w-full border border-border-default border-solid rounded-lg p-6"
415+
className="flex flex-col gap-10 w-full border border-border-default border-solid rounded-lg p-6"
416416
>
417417
{Boolean(error) && <ErrorAlert error={error} />}
418418

@@ -683,6 +683,6 @@ export const CreateWorkspacePageViewExperimental: FC<
683683
</div>
684684
</form>
685685
</div>
686-
</div>
686+
</>
687687
);
688688
};

0 commit comments

Comments
 (0)