mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-09-21 03:01:27 -03:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user