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
Pickers: library and look grids keep each row as tall as its tiles
Adarshf3bc863eb7d7
diff --git a/src/components/assist/project-dialog.tsx b/src/components/assist/project-dialog.tsxindex 396f0632..f3a158ef 100644--- a/src/components/assist/project-dialog.tsx+++ b/src/components/assist/project-dialog.tsx@@ -114,7 +114,7 @@ function Form({ project, onDone }: { project?: AssistProject; onDone: (p?: Assis<fieldset className="space-y-2"><legend className="text-sm font-medium">Skills</legend><p className="text-[12px] text-muted-foreground">{picked.length ? `Assist can use only these ${picked.length} skill${picked.length > 1 ? "s" : ""} here.` : "None picked: every skill that's switched on is available. Pick some to limit the project to them."}</p>- <div className="grid max-h-56 gap-1 overflow-y-auto rounded-xl border p-1.5 sm:grid-cols-2">+ <div className="grid auto-rows-max max-h-56 gap-1 overflow-y-auto rounded-xl border p-1.5 sm:grid-cols-2">{skills.data?.map((s) => (<label key={s.name} className="flex cursor-pointer items-center gap-2.5 rounded-lg px-2 py-1.5 hover:bg-accent"><Checkbox checked={picked.includes(s.name)} onCheckedChange={() => toggle(s.name)} aria-label={s.title} />diff --git a/src/components/canvas/nodes.tsx b/src/components/canvas/nodes.tsxindex 221df2d8..140cb3ae 100644--- a/src/components/canvas/nodes.tsx+++ b/src/components/canvas/nodes.tsx@@ -1389,7 +1389,7 @@ function LibraryGrid({ kind, onPick }: { kind: MediaKind; onPick: (url: string,{assets.isLoading ? (<p className="py-6 text-center text-sm text-muted-foreground">Loading…</p>) : assets.data?.length ? (- <div className="grid max-h-72 grid-cols-4 gap-1.5 overflow-y-auto max-md:max-h-none">+ <div className="grid auto-rows-max max-h-72 grid-cols-4 gap-1.5 overflow-y-auto max-md:max-h-none">{assets.data.map((a) => (<button key={a.id} className="aspect-square overflow-hidden rounded-md bg-muted ring-primary transition hover:ring-2" onClick={() => onPick(a.url, a.name ?? undefined)} aria-label={a.name ?? "Library item"}>{a.kind === "video" ? (diff --git a/src/components/cinema/blockout-panel.tsx b/src/components/cinema/blockout-panel.tsxindex 3d6450b2..ec5ce00a 100644--- a/src/components/cinema/blockout-panel.tsx+++ b/src/components/cinema/blockout-panel.tsx@@ -518,7 +518,7 @@ export function BlockoutPanel(props: BlockoutPanelProps) {</div><UnavailableNote {...elementNote.noteProps} /><p className="px-2 pt-2 pb-1 text-[11px] font-medium tracking-wide text-muted-foreground uppercase">From your library</p>- <div className="grid max-h-44 grid-cols-4 gap-1 overflow-y-auto">+ <div className="grid auto-rows-max max-h-44 grid-cols-4 gap-1 overflow-y-auto">{(images.data ?? []).slice(0, 40).map((a) => (<button key={a.id} type="button" onClick={() => addRef({ url: a.url, role: "location", name: undefined })} className="aspect-square overflow-hidden rounded-md bg-muted" aria-label={`Use ${a.name ?? "this picture"}`}>{/* eslint-disable-next-line @next/next/no-img-element */}diff --git a/src/components/cinema/prompt-bar.tsx b/src/components/cinema/prompt-bar.tsxindex 0fb193b3..756e0299 100644--- a/src/components/cinema/prompt-bar.tsx+++ b/src/components/cinema/prompt-bar.tsx@@ -264,7 +264,7 @@ function AddRef({ onFiles, onPick, compact }: { onFiles: (f: FileList) => void;<ImagePlus className="size-4" /> Upload images, videos or audio</button><p className="px-2 pt-2 pb-1 text-[11px] font-medium tracking-wide text-muted-foreground uppercase">From your library</p>- <div className="grid max-h-56 grid-cols-4 gap-1 overflow-y-auto">+ <div className="grid auto-rows-max max-h-56 grid-cols-4 gap-1 overflow-y-auto">{(assets.data ?? []).slice(0, 40).map((a) => (<buttonkey={a.id}diff --git a/src/components/genjutsu/look-picker.tsx b/src/components/genjutsu/look-picker.tsxindex 0cf0aace..fee299cb 100644--- a/src/components/genjutsu/look-picker.tsx+++ b/src/components/genjutsu/look-picker.tsx@@ -84,7 +84,7 @@ export function LookPicker({)}{source === "fuobe" && (- <div role="tabpanel" id="look-panel-fuobe" aria-labelledby="look-tab-fuobe" className="grid max-h-[460px] grid-cols-3 gap-1 overflow-y-auto pr-0.5 sm:grid-cols-4 xl:grid-cols-5">+ <div role="tabpanel" id="look-panel-fuobe" aria-labelledby="look-tab-fuobe" className="grid auto-rows-max max-h-[460px] grid-cols-3 gap-1 overflow-y-auto pr-0.5 sm:grid-cols-4 xl:grid-cols-5">{presets.map((p) => (<LookCardkey={p.id}@@ -104,7 +104,7 @@ export function LookPicker({{source === "soul" && (<div role="tabpanel" id="look-panel-soul" aria-labelledby="look-tab-soul" className="space-y-2"><p className="text-[12px] text-muted-foreground">Fuobe Soul's looks: their words and LoRAs restyle the first frame, and every frame follows it.</p>- <div className="grid max-h-[460px] grid-cols-3 gap-1.5 overflow-y-auto pr-0.5 sm:grid-cols-4 xl:grid-cols-5">+ <div className="grid auto-rows-max max-h-[460px] grid-cols-3 gap-1.5 overflow-y-auto pr-0.5 sm:grid-cols-4 xl:grid-cols-5">{souls.map((l) => {const on = look?.kind === "soul" && look.id === l.id;return (diff --git a/src/components/marketing/pickers.tsx b/src/components/marketing/pickers.tsxindex aef067ee..0d58794b 100644--- a/src/components/marketing/pickers.tsx+++ b/src/components/marketing/pickers.tsx@@ -97,7 +97,7 @@ export function ProductSlot({ value, onChange, required, brandId, pulse }: { val{products.isLoading ? (<Loader2 className="size-4 animate-spin text-muted-foreground" />) : list.length ? (- <div className="grid max-h-64 grid-cols-3 gap-2 overflow-y-auto sm:grid-cols-4">+ <div className="grid auto-rows-max max-h-64 grid-cols-3 gap-2 overflow-y-auto sm:grid-cols-4">{list.map((p) => (<button key={p.id} type="button" disabled={!p.images.length} onClick={() => choose(productChoice(p))} className={cn("min-w-0 rounded-lg p-1 text-left outline-none hover:bg-accent focus-visible:ring-2 focus-visible:ring-ring disabled:opacity-50", value?.productId === p.id && "bg-brand-faint")} title={p.images.length ? p.name : `${p.name} has no images`}><ProductThumb product={p} className="aspect-square rounded-md" />diff --git a/src/components/moodboards/moodboard-panel.tsx b/src/components/moodboards/moodboard-panel.tsxindex 0c434950..7a41611b 100644--- a/src/components/moodboards/moodboard-panel.tsx+++ b/src/components/moodboards/moodboard-panel.tsx@@ -109,7 +109,7 @@ export function MoodboardPanel({ value, onPick }: { value?: MoodboardPick; onPic</div>)}</div>- <div className="grid max-h-[46svh] grid-cols-3 gap-1.5 overflow-y-auto sm:max-h-[320px]">+ <div className="grid auto-rows-max max-h-[46svh] grid-cols-3 gap-1.5 overflow-y-auto sm:max-h-[320px]">{curated.map((c) => (<buttonkey={c.id}@@ -127,7 +127,7 @@ export function MoodboardPanel({ value, onPick }: { value?: MoodboardPick; onPic</div></>) : (- <div className="grid max-h-[50svh] grid-cols-2 gap-2 overflow-y-auto sm:max-h-[340px]">+ <div className="grid auto-rows-max max-h-[50svh] grid-cols-2 gap-2 overflow-y-auto sm:max-h-[340px]">{isLoading ? (Array.from({ length: 4 }, (_, i) => <Skeleton key={i} className="aspect-square" />)) : mine.length ? (diff --git a/src/components/studio/film-look-chip.tsx b/src/components/studio/film-look-chip.tsxindex 0ffed9f1..07bf3dc5 100644--- a/src/components/studio/film-look-chip.tsx+++ b/src/components/studio/film-look-chip.tsx@@ -69,7 +69,7 @@ export default function FilmLookChip({ value, onChange, disabled }: { value?: st</button>))}</div>- <div className="grid max-h-80 grid-cols-3 gap-1.5 overflow-y-auto sm:grid-cols-4">+ <div className="grid auto-rows-max max-h-80 grid-cols-3 gap-1.5 overflow-y-auto sm:grid-cols-4">{items.map((l) => (<buttonkey={l.id}diff --git a/src/components/studio/look-chip.tsx b/src/components/studio/look-chip.tsxindex eaf6e90d..bf951957 100644--- a/src/components/studio/look-chip.tsx+++ b/src/components/studio/look-chip.tsx@@ -122,7 +122,7 @@ export default function LookChip({))}</div>)}- <div className="grid max-h-80 grid-cols-3 gap-1.5 overflow-y-auto sm:grid-cols-4">+ <div className="grid auto-rows-max max-h-80 grid-cols-3 gap-1.5 overflow-y-auto sm:grid-cols-4">{items.map((l) => (<buttonkey={l.id}diff --git a/src/components/studio/media-slot.tsx b/src/components/studio/media-slot.tsxindex 1d81dc56..54c64ba7 100644--- a/src/components/studio/media-slot.tsx+++ b/src/components/studio/media-slot.tsx@@ -217,7 +217,7 @@ export function LibraryGrid({ kinds, onPick }: { kinds: MediaKind[]; onPick: (v:<Loader2 className="size-4 animate-spin text-muted-foreground" /></div>) : assets.data?.length ? (- <div className="grid max-h-72 grid-cols-4 gap-1.5 overflow-y-auto">+ <div className="grid auto-rows-max max-h-72 grid-cols-4 gap-1.5 overflow-y-auto">{assets.data.map((a) => (<buttonkey={a.id}