diff --git a/ui/src/components/AdapterLoginChrome.test.tsx b/ui/src/components/AdapterLoginChrome.test.tsx index a8c893bcdfd..bae179d506d 100644 --- a/ui/src/components/AdapterLoginChrome.test.tsx +++ b/ui/src/components/AdapterLoginChrome.test.tsx @@ -222,6 +222,15 @@ describe("the connect step's cards", () => { expect(plain!.hasAttribute("aria-describedby")).toBe(false); }); + it.each([false, true])("shares the dialog sizing rule across card layouts (loading=%s)", (loading) => { + render(<> + + + ); + expect(Array.from(container.children).every(card => card.matches("[data-login-card]"))).toBe(true); + expect(container.children).toHaveLength(2); + }); + it("holds one height across the card's waiting and ready states", () => { // The card opens on a spinner and then fills. Both states share a floor, so // the footer below is pushed down once for one event rather than twice — diff --git a/ui/src/components/AdapterLoginChrome.tsx b/ui/src/components/AdapterLoginChrome.tsx index 16429db98fa..d8901f55c81 100644 --- a/ui/src/components/AdapterLoginChrome.tsx +++ b/ui/src/components/AdapterLoginChrome.tsx @@ -101,7 +101,7 @@ export function OnboardingLoginCard({ }) { if (revealTogether) { return ( -
+
+
{/* The row is the instruction alone. It shared this line with a Cancel until that button went — it repeated the footer's Back, which is the step's one way out. diff --git a/ui/src/index.css b/ui/src/index.css index 3a583f87088..6d6aabf1c9f 100644 --- a/ui/src/index.css +++ b/ui/src/index.css @@ -1355,6 +1355,15 @@ html:has(.paperclip-app-shell[data-keyboard-open="true"] [data-classic-task-shel } } +/* Reserve two instruction lines, their gap, the control row, and the card padding. */ +.connect-account-dialog [data-login-card] { + min-height: calc(2 * var(--text-xs) * var(--text-xs--line-height) + 13 * var(--spacing) + var(--sz-44px)); +} + +.connect-account-dialog [data-login-card].flex-col { + justify-content: space-between; +} + /* ──────────────────────────────────────────────────────────────────────── Chat-style task thread animation utilities (default view; classic legacy view sits behind enableClassicTaskInterface).