feat(loras): warn when widget strength leaves the usage-tips range

The cycler-list payload now carries usage_tips, and the LORAS widget
parses strength_min/strength_max/strength_range into a cached lookup.
Strength inputs (model and clip) turn amber with an explanatory tooltip
when dragged, typed, or stepped outside the recommended range.

Related: https://github.com/willmiao/ComfyUI-Lora-Manager/issues/1090
This commit is contained in:
Will Miao
2026-09-19 05:49:01 +08:00
parent 3b9e8efb3d
commit c8c84bfc54
7 changed files with 584 additions and 8 deletions
+12
View File
@@ -309,6 +309,18 @@
box-shadow: 0 0 0 2px rgba(66, 153, 225, 0.3);
}
/* Advisory cue: strength is outside the usage-tips recommended range.
Amber to distinguish it from the red "missing LoRA" error state. */
.lm-lora-strength-input.lm-strength-out-of-range {
border-color: rgba(245, 158, 11, 0.75);
color: rgba(252, 211, 77, 0.95);
}
.lm-lora-strength-input.lm-strength-out-of-range:focus {
border-color: rgba(245, 158, 11, 0.9);
box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.3);
}
.lm-lora-strength-buttons {
display: flex;
flex-direction: column;