Merge pull request #63 from ausboss/codex/lora-insert-rows

Insert empty LoRA slots above or below a row
This commit is contained in:
ausboss
2026-09-11 14:24:04 -05:00
committed by GitHub
3 changed files with 20 additions and 1 deletions
+5
View File
@@ -2,6 +2,11 @@
All notable changes to ComfyUI-AusBoss are documented here.
## Unreleased
- LoRA Loader: right-click a row to insert an empty LoRA slot above or
below it, preserving the order and settings of the existing stack.
## 2.0.2 - 2026-09-10
- The LoRA loader validates the SHA-256 used in its fixed Civitai URL and
+5 -1
View File
@@ -23,7 +23,11 @@ come out of one socket, ready to wire into a prompt.
- **i**: Info card with the preview image, base model, file size and
modified date, and trigger words for that LoRA.
Right-click a row to move, duplicate, or remove it. One strength drives both
Right-click a row to insert an empty LoRA above or below it, move, duplicate,
or remove it. Inserting keeps the existing rows and their settings in order;
the new slot uses the gear menu's default strength (initially 1).
The stack holds up to 64 rows.
One strength drives both
model and CLIP by default; the gear menu's **Separate model / CLIP
strength** switch shows a second box per row. The switch is per-node — new
nodes always start unified — and an absorb that imports a row with unequal
+10
View File
@@ -1052,6 +1052,16 @@ function openRowMenu(state, index, event) {
button.addEventListener("click", () => { closePopup(); action(); });
menu.append(button);
};
const insertEmpty = (position) => {
if (state.rows.length >= MAX_ROWS) return;
const strength = roundStrength(state.settings?.default_strength ?? 1);
const rows = state.rows.slice();
rows.splice(position, 0, { ...newRow(), strength, strength_clip: strength });
commitRows(state, rows, { structural: true });
fitNode(state);
};
item("Insert empty LoRA above", () => insertEmpty(index), state.rows.length >= MAX_ROWS);
item("Insert empty LoRA below", () => insertEmpty(index + 1), state.rows.length >= MAX_ROWS);
item("Move up", () => commitRows(state, moveRow(state.rows, index, -1), { structural: true }), index === 0);
item("Move down", () => commitRows(state, moveRow(state.rows, index, 1), { structural: true }),
index === state.rows.length - 1);