diff --git a/web/comfyui/loras_widget.js b/web/comfyui/loras_widget.js index a5210234..242d37ed 100644 --- a/web/comfyui/loras_widget.js +++ b/web/comfyui/loras_widget.js @@ -900,7 +900,7 @@ export function addLorasWidget(node, name, opts, callback) { }); // Calculate height based on number of loras and fixed sizes - const calculatedHeight = CONTAINER_PADDING + HEADER_HEIGHT + (lorasData.length * LORA_ENTRY_HEIGHT); + const calculatedHeight = CONTAINER_PADDING + HEADER_HEIGHT + (Math.min(lorasData.length, 5) * LORA_ENTRY_HEIGHT); updateWidgetHeight(calculatedHeight); };