mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-06-25 12:31:15 -03:00
- Fix Vue mode: text widgets (CLIPTextEncode, Prompt LM) had no [data-testid=widget-layout-field-label], so findRowEl never matched. Added fallback strategies: bare <label> text match and widget index match. - Fix Vue mode: flash background pulse was never applied — @keyframes was defined but no rule bound it to .lm-flash. Replaced with CSS transition on .lm-flash-host class for value text color fade-in/fade-out. - Fix Vue mode: -webkit-text-fill-color set by ComfyUI overrode even with !important. Added -webkit-text-fill-color override to .lm-flash. - Fix canvas mode: highlight rect was double-offset because onDrawForeground ctx is pre-translated to node.pos. Removed background rect entirely per design decision; kept text_color + inline color only. - Add fade-in (250ms) / fade-out (400ms) for text color in both modes. Canvas-drawn widgets use rAF color interpolation; DOM widgets use CSS transition. Fixed hexToRgb to handle 3-digit hex shorthand (#DDD). - Add hover dismissal to canvas mode via app.canvas.getWidgetAtCursor(). Vue mode already had it via mouseover listener. - Replace 60fps rAF poll with 100ms setInterval for hover detection. - Fix batch cleanup closure bug: isDomWidget evaluated per-widget instead of per-call; fade rAF cancellers tracked per-widget in _lmFadeCancels map. - Unify flash color from #66B3FF to LM brand accent #4299E0. - Fix Vue fade-out: keep .lm-flash-host 300ms after removing .lm-flash so CSS transition persists. Canvas DOM widgets: keep inline transition 300ms after clearing color.
21 KiB
21 KiB