Commit 8905f33
committed
Load CSS for ResolutionMaster only when needed
CSS is now loaded dynamically when a ResolutionMaster node is created, preventing global style interference in ComfyUI. The css-loader.js module was updated to export a loadStylesWhenNeeded function, and ResolutionMaster.js was updated to import and call this function during node setup. Minor improvements were also made to height adjustment and tooltip redraw logic.1 parent 90c5003 commit 8905f33
2 files changed
Lines changed: 20 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
76 | 84 | | |
77 | 85 | | |
78 | 86 | | |
| |||
401 | 409 | | |
402 | 410 | | |
403 | 411 | | |
404 | | - | |
405 | | - | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
406 | 415 | | |
407 | 416 | | |
408 | 417 | | |
| |||
1495 | 1504 | | |
1496 | 1505 | | |
1497 | 1506 | | |
1498 | | - | |
| 1507 | + | |
1499 | 1508 | | |
1500 | 1509 | | |
1501 | | - | |
1502 | | - | |
1503 | | - | |
1504 | | - | |
1505 | | - | |
| 1510 | + | |
1506 | 1511 | | |
1507 | 1512 | | |
1508 | 1513 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
45 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
0 commit comments