The open creative studio on ComfyUI: images, video, 3D and audio on open weights, on your own GPU or the cloud. Camera motions, effects, apps, Cinema, Layers, Image to 3D and an AI agent.
TypeScript ai-videocomfyuicreative-toolsgenerative-aiideogramimage-generationimage-to-3dimage-to-videoltx-videominimax-h3nextjsopen-sourceopen-weightsqwen-imagetext-to-imagevideo-generationwan
Connect your GPU: the card's form fits inside it
Adarsh71a219ebf143
diff --git a/src/components/guest-prompt.tsx b/src/components/guest-prompt.tsxindex 722be54d..ad346070 100644--- a/src/components/guest-prompt.tsx+++ b/src/components/guest-prompt.tsx@@ -45,7 +45,7 @@ export function GuestPrompt() {<CloseOnNavigation close={close} /></Suspense><Dialog open={open} onOpenChange={(o) => !o && close()}>- <DialogContent className={card?.kind === "gpu" ? "max-h-[90svh] overflow-y-auto sm:max-w-xl" : "sm:max-w-sm"}>+ <DialogContent className={card?.kind === "gpu" ? "max-h-[90svh] grid-cols-[minmax(0,1fr)] overflow-y-auto sm:max-w-xl" : "sm:max-w-sm"}>{card?.kind === "gpu" ? (<><DialogHeader>diff --git a/tests/e2e/guest-prompt.mjs b/tests/e2e/guest-prompt.mjsindex bfae4dec..aece8e5c 100644--- a/tests/e2e/guest-prompt.mjs+++ b/tests/e2e/guest-prompt.mjs@@ -1,7 +1,7 @@// A refused change shows one card, in the browser. A guest uploads a picture in Color Grading: "Create a free account// to run this" opens alone (no error toast, no trip to the sign-in page). Its Log in and Sign up free open the sign-in// page with the card closed, Back closes it too, and a wrong password on the sign-in page is the form's own error.-// Then an account without its GPU: "Connect your GPU" opens alone, and closes when the page changes.+// Then an account without its GPU: "Connect your GPU" opens alone, its form inside it, and closes when the page changes.// Usage: node tests/e2e/guest-prompt.mjs [appUrl] [--shots <dir>] (the app with a password and FUOBE_PUBLIC_SIGNUP=1).// Signs up one throwaway account. Exits 1 on a failed check.import fs from "node:fs";@@ -132,6 +132,8 @@ try {await shot(page, "5-connect-gpu");check("one card opens: Connect your GPU", s.cards.length === 1 && s.cards[0] === GPU_CARD, JSON.stringify(s.cards));check("no error toast on top of it", s.errors.length === 0, JSON.stringify(s.errors));+ const sideways = await page.getByRole("dialog").evaluate((d) => d.scrollWidth - d.clientWidth);+ check("its form fits inside it (nothing cut off at the right)", sideways <= 0, `${sideways}px`);await page.goBack();await page.waitForURL((u) => u.pathname === "/");await settled(page);