aboutsummaryrefslogtreecommitdiffstats
path: root/modules/ui_extra_networks.py
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2023-07-16 07:25:34 +0000
committerAUTOMATIC1111 <16777216c@gmail.com>2023-07-16 07:25:34 +0000
commit690d56f3c10e5359e15eeba9c68e56b2eb193ac3 (patch)
tree450edd9642f0be180d4cfba617fad24b496fc167 /modules/ui_extra_networks.py
parent7b052eb70eb2a35ce4f776b1e2ab1389802a41b5 (diff)
downloadstable-diffusion-webui-gfx803-690d56f3c10e5359e15eeba9c68e56b2eb193ac3.tar.gz
stable-diffusion-webui-gfx803-690d56f3c10e5359e15eeba9c68e56b2eb193ac3.tar.bz2
stable-diffusion-webui-gfx803-690d56f3c10e5359e15eeba9c68e56b2eb193ac3.zip
nuke thumbs extra networks view mode (use settings tab to change width/height/scale to get thumbs)
Diffstat (limited to 'modules/ui_extra_networks.py')
-rw-r--r--modules/ui_extra_networks.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/modules/ui_extra_networks.py b/modules/ui_extra_networks.py
index a4927c11..d9deccb2 100644
--- a/modules/ui_extra_networks.py
+++ b/modules/ui_extra_networks.py
@@ -132,7 +132,6 @@ class ExtraNetworksPage:
return ""
def create_html(self, tabname):
- view = shared.opts.extra_networks_default_view
items_html = ''
self.metadata = {}
@@ -186,10 +185,10 @@ class ExtraNetworksPage:
self_name_id = self.name.replace(" ", "_")
res = f"""
-<div id='{tabname}_{self_name_id}_subdirs' class='extra-network-subdirs extra-network-subdirs-{view}'>
+<div id='{tabname}_{self_name_id}_subdirs' class='extra-network-subdirs extra-network-subdirs-cards'>
{subdirs_html}
</div>
-<div id='{tabname}_{self_name_id}_cards' class='extra-network-{view}'>
+<div id='{tabname}_{self_name_id}_cards' class='extra-network-cards'>
{items_html}
</div>
"""
@@ -248,12 +247,12 @@ class ExtraNetworksPage:
args = {
"background_image": background_image,
- "style": f"'display: none; {height}{width}'",
+ "style": f"'display: none; {height}{width}; font-size: {shared.opts.extra_networks_card_text_scale*100}%'",
"prompt": item.get("prompt", None),
"tabname": quote_js(tabname),
"local_preview": quote_js(item["local_preview"]),
"name": item["name"],
- "description": (item.get("description") or ""),
+ "description": (item.get("description") or "" if shared.opts.extra_networks_card_show_desc else ""),
"card_clicked": onclick,
"save_card_preview": '"' + html.escape(f"""return saveCardPreview(event, {quote_js(tabname)}, {quote_js(item["local_preview"])})""") + '"',
"search_term": item.get("search_term", ""),