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.
TypeScript agentai-chatai-studioall-in-onecoding-agentdesktop-appfluximage-generationlinuxllmlocal-ailocal-llmopen-sourceprivacyself-hostedstable-diffusionuncensoreduncensored-aivideo-generationwindows
design(models): center Discover header, bubble per model, drop save-path text
purple3fc9fb6fc4d6
diff --git a/src/components/models/DiscoverModels.tsx b/src/components/models/DiscoverModels.tsxindex d82098d4..178f3ec7 100644--- a/src/components/models/DiscoverModels.tsx+++ b/src/components/models/DiscoverModels.tsx@@ -45,7 +45,6 @@ function ModelDiscoverCard({ model, index, isText, getModelDownloadState, isModeconst dlState = getModelDownloadState(model)const isDownloading = dlState?.status === 'downloading' || dlState?.status === 'connecting'const isComplete = dlState?.status === 'complete'- const isError = dlState?.status === 'error'const canDirectDownload = (!!model.downloadUrl && !!model.filename) || !!model.ollamaModelreturn (@@ -54,7 +53,7 @@ function ModelDiscoverCard({ model, index, isText, getModelDownloadState, isModeanimate={{ opacity: 1, y: 0 }}transition={{ delay: index * 0.03 }}>- <GlassCard className="p-3">+ <div className="rounded-lg border border-gray-200 dark:border-white/[0.06] bg-gray-50 dark:bg-white/[0.03] p-3 transition-colors hover:bg-gray-100 dark:hover:bg-white/[0.05]"><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 flex items-center gap-1.5 flex-wrap">@@ -154,7 +153,7 @@ function ModelDiscoverCard({ model, index, isText, getModelDownloadState, isMode) : null}</div></div>- </GlassCard>+ </div></motion.div>)}@@ -336,13 +335,6 @@ export function DiscoverModels({ category }: Props) {return false}- const handleDownload = async (model: DiscoverModel) => {- if (!model.downloadUrl || !model.filename || !model.subfolder) return- dlStore.getState().setMeta(model.filename, model.downloadUrl, model.subfolder)- await startModelDownload(model.downloadUrl, model.subfolder, model.filename)- dlStore.getState().startPolling()- }-const [installingBundle, setInstallingBundle] = useState<string | null>(null)const [installError, setInstallError] = useState<string | null>(null)@@ -431,17 +423,6 @@ export function DiscoverModels({ category }: Props) {return false}- const getBundleProgress = (bundle: ModelBundle): number => {- let totalBytes = 0, downloadedBytes = 0- for (const f of bundle.files) {- if (f.filename && downloads[f.filename]) {- totalBytes += downloads[f.filename].total- downloadedBytes += downloads[f.filename].progress- }- }- return totalBytes > 0 ? (downloadedBytes / totalBytes) * 100 : 0- }-const getModelDownloadState = (model: DiscoverModel): DownloadProgress | null => {if (!model.filename) return nullreturn downloads[model.filename] ?? null@@ -487,7 +468,7 @@ export function DiscoverModels({ category }: Props) {const title = 'Discover'const subtitle = isText- ? `Download GGUF models from HuggingFace.${hfModelPath ? ` Saves to: ${hfModelPath}` : ''}`+ ? 'Download GGUF models from HuggingFace.': isImage? 'Browse image generation models for ComfyUI.': 'Browse video generation models for ComfyUI.'@@ -595,17 +576,16 @@ export function DiscoverModels({ category }: Props) {return (<div className="space-y-4">- <div className="flex items-center justify-between">+ <div className="relative text-center"><h2 className="text-lg font-semibold text-gray-900 dark:text-white">{title}</h2>+ <p className="text-sm text-gray-500 mt-1">{subtitle}</p>{isText && (- <GlowButton variant="secondary" onClick={handleRefresh} disabled={loading} aria-label="Refresh">+ <GlowButton variant="secondary" onClick={handleRefresh} disabled={loading} aria-label="Refresh" className="absolute right-0 top-0 !px-2 !py-1.5"><RefreshCw size={16} className={loading ? 'animate-spin' : ''} /></GlowButton>)}</div>- <p className="text-sm text-gray-500">{subtitle}</p>-<div className="relative w-1/2 mx-auto"><Search size={16} className="absolute left-3 top-1/2 -translate-y-1/2 text-gray-500" /><input@@ -620,8 +600,8 @@ export function DiscoverModels({ category }: Props) {{/* All download progress is shown exclusively in the DownloadBadge (header) */}{!isText && (- <p className="text-[0.65rem] text-gray-500">- Downloads install directly into ComfyUI. Requires ComfyUI path configured in Model Manager.+ <p className="text-[0.65rem] text-gray-500 text-center">+ Requires ComfyUI configured in Model Manager.</p>)}@@ -695,14 +675,13 @@ export function DiscoverModels({ category }: Props) {{filteredBundles.map((bundle, bi) => {const complete = isBundleComplete(bundle)const downloading = isBundleDownloading(bundle) || installingBundle === bundle.name- const bundleProgress = getBundleProgress(bundle)const isComingSoon = !bundle.verified && !completereturn (<motion.div key={bundle.name} initial={{ opacity: 0, y: 10 }} animate={{ opacity: 1, y: 0 }} transition={{ delay: bi * 0.03 }}>- <GlassCard className={`p-3 relative overflow-hidden ${isComingSoon ? 'opacity-50' : ''}`}>+ <div className={`rounded-lg border border-gray-200 dark:border-white/[0.06] bg-gray-50 dark:bg-white/[0.03] p-3 relative overflow-hidden transition-colors hover:bg-gray-100 dark:hover:bg-white/[0.05] ${isComingSoon ? 'opacity-50' : ''}`}>{isComingSoon && (- <div className="absolute inset-0 z-10 flex items-center justify-center bg-black/40 backdrop-blur-[1px] rounded-xl">+ <div className="absolute inset-0 z-10 flex items-center justify-center bg-black/40 backdrop-blur-[1px] rounded-lg"><span className="px-3 py-1.5 rounded-full bg-white/10 border border-white/20 text-white text-xs font-semibold tracking-wider">COMING SOON</span>@@ -779,7 +758,7 @@ export function DiscoverModels({ category }: Props) {)}</div></div>- </GlassCard>+ </div></motion.div>)})}diff --git a/src/components/models/ModelCard.tsx b/src/components/models/ModelCard.tsxindex 66fc95d5..d5aa3bc1 100644--- a/src/components/models/ModelCard.tsx+++ b/src/components/models/ModelCard.tsx@@ -25,10 +25,10 @@ export function ModelCard({ model, isActive, onSelect, onDelete, onInfo, canDelereturn (<divonClick={onSelect}- className={`flex items-center gap-2.5 px-3 py-1.5 rounded-lg cursor-pointer transition-all group ${+ className={`flex items-center gap-2.5 px-3 py-1.5 rounded-lg border cursor-pointer transition-all group ${isActive- ? 'bg-blue-50 dark:bg-white/[0.05] ring-1 ring-blue-400/40'- : 'hover:bg-gray-50 dark:hover:bg-white/[0.03]'+ ? 'bg-blue-50 dark:bg-white/[0.05] border-blue-400/40 ring-1 ring-blue-400/40'+ : 'bg-gray-50 dark:bg-white/[0.03] border-gray-200 dark:border-white/[0.06] hover:bg-gray-100 dark:hover:bg-white/[0.05]'}`}>{/* Type icon */}diff --git a/src/components/models/ModelManager.tsx b/src/components/models/ModelManager.tsxindex 1fd1c759..32c1f0d0 100644--- a/src/components/models/ModelManager.tsx+++ b/src/components/models/ModelManager.tsx@@ -131,7 +131,7 @@ export function ModelManager() {{tab === 'installed' && (<>- <div className="space-y-0.5">+ <div className="space-y-1.5">{filteredModels.map((model, i) => (<motion.divkey={model.name}