chrisgoringe / cg-controller

MIT License
31 stars 3 forks source link

[ Aesthetics ] Keep Controller's width when collapsed ( if snapped ) #351

Open JorgeR81 opened 2 hours ago

JorgeR81 commented 2 hours ago

If we have multiple Controllers snapped to the Top bar, it will look better if they keep their full width, when collapsed,


Mockup:

pp3x


Original:

pp1c


Original ( expanded controllers )

pp2x

JorgeR81 commented 2 hours ago

Maybe an easier "rule" is to collapse the Controller only in the y axis ( in all cases ). And the x axis can still be scaled to make adjustments.

It could be like this:

h01


If the Controller always keeps it's width, it may help implementing snapping on collapsed Controllers ( https://github.com/chrisgoringe/cg-controller/issues/337 ). Because this way, all Controllers would retain their original x axis positions, when collapsed. This may be more straightforward and predictable for the user.

For instance, here I have all Controllers collapsed except the Controller that creates the "Big Preview Area", on the right. I want this Controller to keep the same position, when the others are collapsed, even if they all are snapped together.

With this global view of the workflow, I could still have access to a button to bypass ControNet ( and other groups ), in the collapsed controllers. This way, a row of collapsed controllers can still be useful. And we could have other features that also work with collapsed controllers ( https://github.com/chrisgoringe/cg-controller/issues/352 ).


p1