AI media harness for planning, generating, and editing locally
TypeScript
Fix LoRA download name layout
Bitti9363f86670ef
diff --git a/src/components/LoraSettings.tsx b/src/components/LoraSettings.tsxindex 8cf2404..96c802a 100644--- a/src/components/LoraSettings.tsx+++ b/src/components/LoraSettings.tsx@@ -51,7 +51,7 @@ export function LoraLibrary() {<header><div><h2 id="loras-heading">LoRAs</h2><p>Download adapters or add local files, then activate them in a generator template.</p></div><button className="secondary-button" type="button" onClick={() => setAdding(!adding)}><Plus size={16} /> Add LoRA manually</button></header><div className="generator-template-list" role="list" aria-label="LoRAs">- {loras.map((lora) => <div className="generator-template-item" role="listitem" key={lora.id}>+ {loras.map((lora) => <div className="generator-template-item lora-library-item" role="listitem" key={lora.id}>{download?.active && download.loraId === lora.id && <span className="generator-template-item__progress" role="progressbar" aria-label={`Downloading ${lora.name}`} aria-valuemin={0} aria-valuemax={100} aria-valuenow={Math.floor(weightDownloadProgress(download))} style={{ width: `${weightDownloadProgress(download)}%` }} />}<div className="generator-template-item__open"><Layers size={16} /><b>{lora.name}</b><small title={lora.path}>{download?.active && download.loraId === lora.id ? `Downloading · ${Math.floor(weightDownloadProgress(download))}%` : lora.path ? "Available" : "Not downloaded"}</small></div>{lora.url && !lora.path ? <button className="icon-button" type="button" disabled={!desktop || download?.active} aria-label={`Download LoRA ${lora.name}`} onClick={() => void downloadLora(lora.id)}><Download size={15} /></button>diff --git a/src/styles/loras.css b/src/styles/loras.cssindex 48f002f..82a5cc4 100644--- a/src/styles/loras.css+++ b/src/styles/loras.css@@ -1,3 +1,4 @@+.generator-template-item.lora-library-item { grid-template-columns: minmax(0, 1fr) var(--control-sm); }.lora-manual, .template-loras { display: grid; gap: var(--space-3); margin-top: var(--space-4); }.lora-manual > label { display: grid; gap: var(--space-2); }.lora-manual input:not([type="checkbox"]), .template-loras select, .template-loras input[type="number"] {