Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

style(tab): tweak wildcard-tree position #803

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions sd_dynamic_prompts/wildcards_tab.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,17 +74,12 @@ def on_ui_tabs():
<li>Use the wildcard in your script by typing the name of the file or copying the text from the Wildcards file text box.</li>
<li>You can also add your own wildcard files to the {wildcard_manager.path} folder.</li>
</ol>
<style>#sddp-wildcard-tree {{ max-height: max(70vh, 900px); overflow-y: auto !important; }}</style>
"""

with gr.Blocks() as wildcards_tab:
with gr.Row():
with gr.Column():
gr.Textbox(
placeholder="Search in wildcard names...",
elem_id=make_element_id("wildcard-search"),
label="",
)
gr.HTML("Loading...", elem_id=make_element_id("wildcard-tree"))
with gr.Accordion("Help", open=False):
gr.HTML(help_html)
with gr.Accordion("Collection actions", open=False):
Expand All @@ -111,6 +106,12 @@ def on_ui_tabs():
"Delete all wildcards",
elem_id=make_element_id("wildcard-delete-tree-button"),
)
gr.Textbox(
placeholder="Search in wildcard names...",
elem_id=make_element_id("wildcard-search"),
label="",
)
gr.HTML("Loading...", elem_id=make_element_id("wildcard-tree"))
with gr.Column():
gr.Textbox(
"",
Expand All @@ -127,7 +128,7 @@ def on_ui_tabs():
)
save_button = gr.Button(
"Save wildcards",
scale=1,
# scale=1,
elem_id=make_element_id("wildcard-save-button"),
)

Expand Down Expand Up @@ -180,7 +181,6 @@ def on_ui_tabs():
inputs=[overwrite_checkbox, collection_dropdown],
outputs=[server_to_client_message_textbox],
)

return ((wildcards_tab, "Wildcards Manager", "sddp-wildcard-manager"),)


Expand Down