mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-07-13 20:21:16 -03:00
fix(ui): make loras widget fixed-size with user-controlled node resize
Remove dynamic height calculation that auto-resized the node when LoRAs are added or removed. The widget now stays at the size the user sets via the node resize handle, scrolling when content overflows. - Drop updateWidgetHeight() and hardcoded entry-count height math - Set --comfy-widget-min-height once (200px) instead of recalculating - In Vue mode: add contain:layout+size to break the ResizeObserver feedback loop that forced node growth with content (CSS via .lm-loras-container.lm-vue-node scoped to vueNodesMode only) - Remove unused "Node 2.0: Maximum visible LoRA entries" setting
This commit is contained in:
@@ -120,6 +120,15 @@
|
||||
outline: none;
|
||||
}
|
||||
|
||||
/* Vue node mode: prevent content from pushing node size via ResizeObserver.
|
||||
contain:size breaks the feedback loop — the container's intrinsic size
|
||||
is determined solely by CSS, not by how many LoRAs are inside. */
|
||||
.lm-loras-container.lm-vue-node {
|
||||
height: 100%;
|
||||
min-height: var(--comfy-widget-min-height, 200px);
|
||||
contain: layout size;
|
||||
}
|
||||
|
||||
.lm-loras-container:focus {
|
||||
outline: none;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user