adieyal / sd-dynamic-prompts

A custom script for AUTOMATIC1111/stable-diffusion-webui to implement a tiny template language for random prompt generation
MIT License
2.04k stars 262 forks source link

Feature Request: Make the Wildcard Manager's list of files use multiple columns #537

Open skfoo opened 1 year ago

skfoo commented 1 year ago

If you use the Wildcard Manager, on the left half of the page there's a single column of all the wildcard files, and the right half has the editor for each file. If you have a lot of wildcard files, in order to select ones at the bottom of the list you have to scroll down so the editor on the right side goes off screen. And then scroll back up to edit/see what's in the file.

Adding columns: 3 to the style attribute of the #sddp-wildcard-tree sets it to use 3 columns which cuts down the amount of vertical scrolling by 3. What's better I guess is to set the column width based on the largest wildcard file name, so like columns: 15ex if the largest file name is 15 characters.

akx commented 1 year ago

Won't the expandable tree look a bit weird if it's columnized..?

skfoo commented 1 year ago

I guess that's an issue; I haven't been using that so I don't know.