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
351 stars 29 forks source link

Feature Request: Support small form factor devices #39

Open hendrix2222 opened 2 weeks ago

hendrix2222 commented 2 weeks ago

Feature Idea

The UI is currently designed for use on desktop devices, and is rendered appropriately for that use-case.

For non-desktop devices such as tablets or other mobile devices, the UI is not rendered in a user-friendly way. Some support for at least basic text-to-image generation on small form factors would be greatly appreciated.

mcmonkey4eva commented 2 weeks ago

Yep, mobile support on the Generate tab is definitely a major feature requirement.

I have a rough idea of how it'd work:

The main screen should be just the prompt box and image result area, and a button on the left to pull up the parameters list, which pops up to cover the screen and you can edit then swipe it back away similarly you can pull up the other menus (image history / model browser / etc) and they also temporarily take over the full screen while you use them.

Basically take all the current UI features that are placed into cells, and swap them to being sub-screens to swap between, with the 'main prompt + result' area as the centerpoint

hendrix2222 commented 2 weeks ago

Yeah, I'm a backend dev by trade, so UI work isn't something I'm even remotely qualified to speak to, other than it's a lot more difficult than it looks to get things to display nicely across different form factors. And I think you sort of alluded to it, but it may actually end up making the desktop render better by making things a bit more modular anyway.

Separately, I had made a feature request here: https://github.com/ShiftHackZ/Stable-Diffusion-Android/issues/204

to potentially add support for SwarmUI's API to their native Android application, but I have no clue how active the development is there, etc.

jonathan-f-silva commented 1 week ago

While this is not properly addressed, I did some (not so) quick hack in the simple tab to at least do some gens on mobile. Here are the changes if anyone is interested: https://github.com/mcmonkeyprojects/SwarmUI/compare/mcmonkeyprojects:SwarmUI:master...jonathan-f-silva:SwarmUI:feat/simple-mobile?expand=1

Demo GIF ![simple-mobile](https://github.com/mcmonkeyprojects/SwarmUI/assets/85591570/066f913e-2515-49b8-81bf-3f34039189c4)

EDIT: Sorry if it is a little buggy, sometimes need to reload the page to properly work.

mcmonkey4eva commented 1 week ago

If you get it clean and it doesn't break on desktop sized usage, I'd love a PR for that!