Skip to content

armgit / fuobe

Public Imported from GitHub
0

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.

Connect: the "Where is ComfyUI running?" options fill their card

Adarsh2223beb8b551
diff --git a/src/components/gpu/connect-choice.tsx b/src/components/gpu/connect-choice.tsx
index 8474a9fa..20c64363 100644
--- a/src/components/gpu/connect-choice.tsx
+++ b/src/components/gpu/connect-choice.tsx
@@ -206,9 +206,11 @@ export interface ConnectChoiceProps {
reason?: FindReason;
onStart?: () => void;
onNotNow?: () => void;
+ /** The two options' box: 36rem at most from sm up, unless a wider page lifts that (sm:max-w-none). */
+ className?: string;
}
-export function ConnectChoice({ fromRun, kind, reason, onStart, onNotNow }: ConnectChoiceProps) {
+export function ConnectChoice({ fromRun, kind, reason, onStart, onNotNow, className }: ConnectChoiceProps) {
const support = useComputerSupport();
// The owner (whose runs go to their own computer when Settings says so) has no account GPU: only the finder.
const owner = useViewer().data?.owner === true;
@@ -235,7 +237,7 @@ export function ConnectChoice({ fromRun, kind, reason, onStart, onNotNow }: Conn
if (gpu?.mode === "computer" && !flow && !link) return <ComputerStatus gpu={gpu} onLink={() => setLink(true)} />;
const linked = gpu?.mode === "link";
return (
- <div className="w-full min-w-0 space-y-3 sm:max-w-[36rem]">
+ <div className={cn("w-full min-w-0 space-y-3 sm:max-w-[36rem]", className)}>
<div className={cn("space-y-3 rounded-2xl border bg-background p-4", !linked && "border-primary/40")}>
<div className="flex items-start gap-3">
<div className="grid size-9 shrink-0 place-items-center rounded-xl bg-primary text-primary-foreground">
diff --git a/src/components/gpu/connect-gpu.tsx b/src/components/gpu/connect-gpu.tsx
index 12e63443..4432ccab 100644
--- a/src/components/gpu/connect-gpu.tsx
+++ b/src/components/gpu/connect-gpu.tsx
@@ -132,7 +132,7 @@ export function ConnectGpu() {
{header(1)}
{isAccount ? (
<Card>
- <ConnectChoice />
+ <ConnectChoice className="sm:max-w-none" />
</Card>
) : (
<p className="text-[14px] text-muted-foreground">The GPU check is switched off on this studio (FUOBE_GPU_PREFLIGHT=0).</p>
@@ -149,7 +149,7 @@ export function ConnectGpu() {
<Card>
<h2 className="mb-1 text-[16px] font-semibold">Where is ComfyUI running?</h2>
{reason === "refused" && <p className="mb-3 text-[13px] text-destructive">Fuobe can&apos;t use this address. Connect your own ComfyUI.</p>}
- <ConnectChoice />
+ <ConnectChoice className="sm:max-w-none" />
</Card>
{done}
</div>