mcmonkeyprojects / SwarmUI

SwarmUI (formerly StableSwarmUI), A Modular Stable Diffusion Web-User-Interface, with an emphasis on making powertools easily accessible, high performance, and extensibility.
MIT License
1.36k stars 97 forks source link

Always keep Comfy Workflow tab's loader/saver widget thingy at an optimal width #95

Closed Taruvi closed 3 months ago

Taruvi commented 3 months ago

Feature Idea

When saving a workflow with a long name in the Comfy Workflow tab, that little 'widget', I suppose it could be called, grows in width to accommodate for some reason. This leaves empty space between the buttons on the left and the two dropdowns for 'MultiGPU' and 'Quick Load':

SwarmUI-widget01

This affects the workflow area below, necessitating in moving the workflow around to get at the parts that the widget obscures. I tried using the arrow to disappear it into the smallest size but then I found that I keep having to click to get it back open again just to switch to a new saved workflow. It's also impossible to click the 'Use This Workflow in Generate Tab' button while it's in tiny widget mode. I use this button a lot. It also covers some functionality in things like Comfy Custom Nodes Manager (which can't be moved around) until it's made tiny:

SwarmUI-custom-node-manager

I saved a new Custom Workflow called "Custom Comfy Workflow with a really, really, really, really, really, really, really, really, really, really, really, really, really, really, really, really, really, really, really, really, really, really long name":

SwarmUI-Save-Custom-Comfy-Workflow

Then I screenshotted the widget:

SwarmUI-widget02

Then I deleted the workflow and found that the widget did not resize to be any smaller, so it was stuck at that huge width. I pressed F5 and got the error message:

Seems like the ComfyUI workflow editor direct-access hasn't loaded. Give it a second to load - if it doesn't there might be an error message in your browser console or the server logs.

It didn't reload - it just stayed like that. This is all that was in the logs for that period:

Debug Log:

2024-07-27 21:01:23.301 [Debug] check Custom Comfy Workflow with a really, really, really, really, really, really, really, really, really, really, really, really, really, really, really, really, really, really, really, really, really, really long name against Basic SDXL.json
2024-07-27 21:02:14.735 [Debug] Comfy backend 0 using model folder format: forward slash / as no backslash was found
2024-07-27 21:02:15.027 [Debug] Data refreshed!

Verbose Log:

2024-07-27 21:02:12.289 [Verbose] User local triggered a strong data refresh
2024-07-27 21:02:12.291 [Verbose] User local wants to list images in '', maxDepth=3, sortBy=Date, reverse=False, maxInHistory=1000, maxScanned=10000
2024-07-27 21:02:12.295 [Verbose] Comfy backend 0 loading value set...
2024-07-27 21:02:12.675 [Verbose] Listed 10000 images in 0.384 seconds.
2024-07-27 21:02:14.735 [Verbose] Comfy backend 0 loaded value set, parsing...
2024-07-27 21:02:14.735 [Verbose] Comfy backend 0 loaded value set and parsed.
2024-07-27 21:02:14.736 [Verbose] [Model Scan] Add all Stable-Diffusion from folder 
2024-07-27 21:02:14.737 [Verbose] [Model Scan] Add all Stable-Diffusion from folder sdxl
2024-07-27 21:02:14.737 [Verbose] [Model Scan] Add all Stable-Diffusion from folder sdxllightning
2024-07-27 21:02:14.737 [Verbose] [Model Scan] Add all Stable-Diffusion from folder sdxlturbo
2024-07-27 21:02:14.737 [Verbose] [Model Scan] Add all Stable-Diffusion from folder sd15
2024-07-27 21:02:14.737 [Verbose] [Model Scan] Add all Stable-Diffusion from folder sdxlhyper
2024-07-27 21:02:14.737 [Verbose] [Model Scan] Add all Stable-Diffusion from folder sdxlpony
2024-07-27 21:02:14.745 [Verbose] [Model Scan] Add all Stable-Diffusion from folder 
2024-07-27 21:02:14.746 [Verbose] [Model Scan] Add all VAE from folder 
2024-07-27 21:02:14.747 [Verbose] [Model Scan] Add all VAE from folder sdxl
2024-07-27 21:02:14.750 [Verbose] [Model Scan] Add all LoRA from folder 
2024-07-27 21:02:14.750 [Verbose] [Model Scan] Add all LoRA from folder other
2024-07-27 21:02:14.751 [Verbose] [Model Scan] Add all LoRA from folder sdxl
2024-07-27 21:02:14.751 [Verbose] [Model Scan] Add all LoRA from folder sdxlpony
2024-07-27 21:02:14.890 [Verbose] [Model Scan] Add all Embedding from folder 
2024-07-27 21:02:14.891 [Verbose] [Model Scan] Add all Embedding from folder sdxlpony
2024-07-27 21:02:14.891 [Verbose] [Model Scan] Add all Embedding from folder sdxl
2024-07-27 21:02:14.897 [Verbose] [Model Scan] Add all ControlNet from folder 
2024-07-27 21:02:14.904 [Verbose] [Model Scan] Add all ClipVision from folder 
2024-07-27 21:02:14.905 [Verbose] [Model Scan] Add all ClipVision from folder sdxl
2024-07-27 21:02:16.890 [Verbose] Comfy Redir status code 200 from 200 and type application/json; charset=utf-8 for GET 'object_info'

After checking these logs and switching back to the Comfy tab, the error message was gone and the widget was resized to the previous width. So the error meant nothing much in the end but... Reporting it anyway for thoroughness.

My feature request is for the widget to remain at the smallest possible width regardless of the length of saved workflow names.

Whenever I F5 the browser, the widget does exactly what I mean, but only momentarily until it fully loads. This is what I'm asking for:

SwarmUI-optimal-width

Thanks.

Other

No response

mcmonkey4eva commented 3 months ago

fixed