Skip to content

The all-in-one local AI studio for your desktop: chat, image and video generation and a coding agent in one free, open source app. Windows and Linux. No Docker, no terminal, no cloud required.

fix: unify Image/Video Discover cards to match Text card style

PurpleDoubleD8c2ec2fff9e2
diff --git a/src/components/models/DiscoverModels.tsx b/src/components/models/DiscoverModels.tsx
index d087289a..eed0d21c 100644
--- a/src/components/models/DiscoverModels.tsx
+++ b/src/components/models/DiscoverModels.tsx
@@ -400,12 +400,12 @@ export function DiscoverModels({ category }: Props) {
? mainstreamModels.filter((m) => m.name.toLowerCase().includes(search.toLowerCase()) || m.description.toLowerCase().includes(search.toLowerCase()))
: mainstreamModels
- const title = isText ? 'Discover LUncensored' : isImage ? 'Image Models (ComfyUI)' : 'Video Models (ComfyUI)'
+ const title = isText ? 'Discover LUncensored' : isImage ? 'Discover LUncensored' : 'Discover LUncensored'
const subtitle = isText
? 'Search the Ollama registry or browse curated models.'
: isImage
- ? 'Complete packages — each bundle includes everything you need to generate images.'
- : 'Complete packages — each bundle includes Model + VAE + CLIP for video generation.'
+ ? 'Browse image generation models for ComfyUI.'
+ : 'Browse video generation models for ComfyUI.'
return (
<div className="space-y-4">
@@ -485,136 +485,76 @@ export function DiscoverModels({ category }: Props) {
)}
{!isText && (
- <div className="flex items-start gap-2 p-3 rounded-lg bg-blue-50 dark:bg-blue-500/10 border border-blue-200 dark:border-blue-500/20 text-blue-700 dark:text-blue-400 text-xs">
- <Info size={14} className="shrink-0 mt-0.5" />
- <span>
- Models with a download button will be installed directly into ComfyUI. Models without need to be downloaded manually from the link.
- </span>
- </div>
+ <p className="text-[0.65rem] text-gray-500">
+ Downloads install directly into ComfyUI. Requires ComfyUI path configured in Model Manager.
+ </p>
)}
- {/* Model Bundles (Image + Video) */}
+ {/* Model Bundles (Image + Video) — same grid style as text models */}
{(isImage || isVideo) && filteredBundles.length > 0 && (
- <div className="space-y-4">
+ <div className="grid grid-cols-1 md:grid-cols-2 gap-3">
{filteredBundles.map((bundle, bi) => {
const complete = isBundleComplete(bundle)
const downloading = isBundleDownloading(bundle)
const bundleProgress = getBundleProgress(bundle)
return (
- <motion.div key={bundle.name} initial={{ opacity: 0, y: 10 }} animate={{ opacity: 1, y: 0 }} transition={{ delay: bi * 0.05 }}>
- <GlassCard className="p-4">
- <div className="flex items-start justify-between gap-3 mb-3">
- <div>
- <h3 className="text-sm font-semibold text-gray-900 dark:text-white flex items-center gap-1.5">
- {bundle.hot && <span className="text-[0.55rem] px-1.5 py-0.5 rounded bg-orange-500/15 text-orange-500 font-bold border border-orange-500/30">HOT</span>}
- {bundle.name}
+ <motion.div key={bundle.name} initial={{ opacity: 0, y: 10 }} animate={{ opacity: 1, y: 0 }} transition={{ delay: bi * 0.03 }}>
+ <GlassCard className="p-3">
+ <div className="flex items-start justify-between gap-2">
+ <div className="flex-1 min-w-0">
+ <h3 className="text-sm font-medium text-gray-900 dark:text-white truncate flex items-center gap-1.5">
+ {complete && <span className="text-[0.55rem] px-1.5 py-0.5 rounded bg-green-500/15 text-green-500 font-bold border border-green-500/30 shrink-0">INSTALLED</span>}
+ {bundle.hot && !complete && <span className="text-[0.55rem] px-1.5 py-0.5 rounded bg-orange-500/15 text-orange-500 font-bold border border-orange-500/30 shrink-0">HOT</span>}
+ <span className="truncate">{bundle.name}</span>
</h3>
- <p className="text-xs text-gray-500 mt-0.5">{bundle.description}</p>
+ {bundle.description && (
+ <p className="text-xs text-gray-500 mt-0.5">{bundle.description}</p>
+ )}
<div className="flex items-center gap-2 mt-1.5 flex-wrap">
{bundle.tags.map(t => (
<span key={t} className="text-[10px] px-1.5 py-0.5 rounded bg-gray-100 dark:bg-white/5 text-gray-600 dark:text-gray-400">{t}</span>
))}
- <span className="text-[10px] text-gray-400">Total: {bundle.totalSizeGB} GB</span>
- <span className="text-[10px] text-orange-500">Requires {bundle.vramRequired} VRAM</span>
- {systemVRAM && parseVRAM(bundle.vramRequired) <= systemVRAM && (
- <span className="text-[10px] px-1.5 py-0.5 rounded bg-emerald-500/10 text-emerald-500 font-medium">Fits your GPU</span>
+ {bundle.totalSizeGB && (
+ <span className="text-[10px] text-gray-400">{bundle.totalSizeGB} GB</span>
)}
- {systemVRAM && parseVRAM(bundle.vramRequired) > systemVRAM && (
- <span className="text-[10px] px-1.5 py-0.5 rounded bg-red-500/10 text-red-400 font-medium">Needs more VRAM</span>
+ <span className="text-[10px] text-gray-400">{bundle.files.length} files</span>
+ {systemVRAM && parseVRAM(bundle.vramRequired) <= systemVRAM && (
+ <span className="text-[10px] px-1.5 py-0.5 rounded bg-emerald-500/10 text-emerald-500 font-medium">Fits GPU</span>
)}
</div>
+
+ {downloading && (
+ <div className="mt-2">
+ <ProgressBar progress={bundleProgress} />
+ <p className="text-[10px] text-gray-400 mt-0.5">{Math.round(bundleProgress)}%</p>
+ </div>
+ )}
</div>
- <div className="shrink-0">
+
+ <div className="flex items-center gap-1 shrink-0">
{complete ? (
- <span className="flex items-center gap-1 text-xs text-green-500 px-3 py-1.5 rounded-lg bg-green-50 dark:bg-green-500/10">
- <CheckCircle size={14} /> Ready
- </span>
+ <span className="text-xs text-green-500 px-2 py-1">Installed</span>
) : downloading ? (
- <span className="flex items-center gap-1 text-xs text-blue-500 px-3 py-1.5">
- <Loader2 size={14} className="animate-spin" /> Installing...
+ <span className="p-2 text-gray-400">
+ <Loader2 size={14} className="animate-spin" />
</span>
) : (
<button
onClick={() => handleBundleInstall(bundle)}
- className="flex items-center gap-1.5 px-3 py-1.5 rounded-lg bg-green-600 hover:bg-green-700 text-white text-xs font-medium transition-colors"
+ className="p-2 rounded-lg bg-green-100 dark:bg-green-500/15 hover:bg-green-200 dark:hover:bg-green-500/25 text-green-700 dark:text-green-400 transition-all"
+ title={`Install all ${bundle.files.length} files (${bundle.totalSizeGB} GB)`}
>
- <Download size={14} /> Install All ({bundle.totalSizeGB} GB)
+ <Download size={14} />
</button>
)}
+ {bundle.url && (
+ <a href={bundle.url} target="_blank" rel="noopener noreferrer" className="p-2 rounded-lg hover:bg-gray-100 dark:hover:bg-white/10 text-gray-500 transition-all" title="View on HuggingFace">
+ <ExternalLink size={14} />
+ </a>
+ )}
</div>
</div>
-
- {/* Bundle progress */}
- {downloading && (
- <div className="mb-3">
- <ProgressBar progress={bundleProgress} />
- <p className="text-[10px] text-gray-400 mt-1">{Math.round(bundleProgress)}% complete</p>
- </div>
- )}
-
- {/* Individual files */}
- <div className="space-y-2 border-t border-gray-200 dark:border-white/5 pt-3">
- <p className="text-[10px] text-gray-400 uppercase tracking-wider font-medium">Included files ({bundle.files.length})</p>
- {bundle.files.map((file) => {
- const dlState = file.filename ? downloads[file.filename] : null
- const fileDl = dlState?.status === 'downloading' || dlState?.status === 'connecting'
- const fileDone = dlState?.status === 'complete'
- const fileErr = dlState?.status === 'error'
-
- return (
- <div key={file.filename} className="flex items-center justify-between gap-2 py-1">
- <div className="flex-1 min-w-0">
- <div className="flex items-center gap-2">
- <span className="text-xs text-gray-700 dark:text-gray-300 truncate">{file.name}</span>
- {file.sizeGB && <span className="text-[10px] text-gray-400 shrink-0">{file.sizeGB} GB</span>}
- </div>
- {fileDl && dlState && dlState.total > 0 && (
- <div className="mt-1">
- <ProgressBar progress={(dlState.progress / dlState.total) * 100} />
- <span className="text-[10px] text-gray-400">{formatBytes(dlState.progress)} / {formatBytes(dlState.total)}{dlState.speed > 0 ? ` · ${formatBytes(dlState.speed)}/s` : ''}</span>
- </div>
- )}
- {fileErr && <span className="text-[10px] text-red-500">Failed: {dlState?.error}</span>}
- </div>
- <div className="shrink-0 flex items-center gap-0.5">
- {fileDone ? (
- <CheckCircle size={14} className="text-green-500" />
- ) : fileDl ? (
- <>
- <Loader2 size={14} className="animate-spin text-blue-400" />
- <button onClick={() => file.filename && handlePause(file.filename)} className="p-0.5 rounded text-gray-400 hover:text-yellow-500" title="Pause" aria-label="Pause">
- <Pause size={12} />
- </button>
- <button onClick={() => file.filename && handleCancel(file.filename)} className="p-0.5 rounded text-gray-400 hover:text-red-500" title="Cancel" aria-label="Cancel">
- <X size={12} />
- </button>
- </>
- ) : dlState?.status === 'paused' ? (
- <>
- <button onClick={() => file.filename && handleResume(file.filename)} className="p-0.5 rounded text-gray-400 hover:text-green-500" title="Resume" aria-label="Resume">
- <Play size={12} />
- </button>
- <button onClick={() => file.filename && handleCancel(file.filename)} className="p-0.5 rounded text-gray-400 hover:text-red-500" title="Cancel" aria-label="Cancel">
- <X size={12} />
- </button>
- </>
- ) : (
- <button onClick={() => handleDownload(file)} className="p-1 rounded text-gray-400 hover:text-green-500 transition-colors" title="Download this file" aria-label="Download this file">
- <Download size={14} />
- </button>
- )}
- </div>
- </div>
- )
- })}
- </div>
-
- {bundle.url && (
- <a href={bundle.url} target="_blank" rel="noopener noreferrer" className="flex items-center gap-1 text-[10px] text-gray-400 hover:text-gray-600 dark:hover:text-gray-300 mt-2 transition-colors">
- <ExternalLink size={10} /> View on HuggingFace
- </a>
- )}
</GlassCard>
</motion.div>
)