From 1916c9046c4e6a1e081be1ba06e278d182a40133 Mon Sep 17 00:00:00 2001 From: FraterCCCLXIII Date: Tue, 18 Aug 2026 10:50:29 -0700 Subject: [PATCH] fix: restore onboarding modal bottom padding and stop leftover scrollbars (#16684) Co-authored-by: Cursor Co-authored-by: hieptl --- __tests__/components/onboarding/onboarding-modal.test.tsx | 6 ++++++ src/components/features/onboarding/onboarding-modal.tsx | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/__tests__/components/onboarding/onboarding-modal.test.tsx b/__tests__/components/onboarding/onboarding-modal.test.tsx index 260805e7d6..007d1aad3f 100644 --- a/__tests__/components/onboarding/onboarding-modal.test.tsx +++ b/__tests__/components/onboarding/onboarding-modal.test.tsx @@ -735,6 +735,12 @@ describe("OnboardingModal", () => { const scrollArea = screen.getByTestId("onboarding-scroll-area"); const rail = screen.getByTestId("onboarding-slide-rail"); expect(scrollArea.contains(rail)).toBe(true); + // Bottom padding matches the header (`pt-7`) so the last control is + // not flush against the modal edge. The region must size to its + // content (`min-h-0` + overflow, no `flex-1`) so a content-fitting + // step does not paint a leftover scrollbar. + expect(scrollArea).toHaveClass("pb-7"); + expect(scrollArea).not.toHaveClass("flex-1"); }); it("keeps the LLM step heading and Back/Next outside the scrollable settings body", async () => { diff --git a/src/components/features/onboarding/onboarding-modal.tsx b/src/components/features/onboarding/onboarding-modal.tsx index 545e1dd583..acb60a7101 100644 --- a/src/components/features/onboarding/onboarding-modal.tsx +++ b/src/components/features/onboarding/onboarding-modal.tsx @@ -314,7 +314,7 @@ export function OnboardingModal({