diff --git a/html/card-no-preview.png b/html/card-no-preview.png index 952d30580..352b0a9df 100644 Binary files a/html/card-no-preview.png and b/html/card-no-preview.png differ diff --git a/javascript/base.css b/javascript/base.css index 799f06613..77b838f18 100644 --- a/javascript/base.css +++ b/javascript/base.css @@ -104,6 +104,7 @@ table.settings-value-table td { padding: 0.4em; border: 1px solid #ccc; max-widt .extra-network-cards .card:hover .actions { display: block; } .extra-network-cards .card:hover .overlay .tags { display: block; } .extra-network-cards .card .actions { font-size: 3em; display: none; text-align-last: right; cursor: pointer; font-variant: unicase; position: absolute; z-index: 100; right: 0; height: 0.7em; width: 100%; background: rgba(0, 0, 0, 0.40); } +.extra-network-cards .card:has(>img[src*="card-no-preview.png"])::after { content: ''; position: absolute; width: 100%; height: 100%; opacity: 0.5; mix-blend-mode: multiply; background-color: var(--data-color); } #txt2img_description, #img2img_description { max-height: 63px; overflow-y: auto !important; } #txt2img_description > label > textarea, #img2img_description > label > textarea { font-size: 0.9em } diff --git a/modules/ui_extra_networks.py b/modules/ui_extra_networks.py index 250a2a35e..eb293283e 100644 --- a/modules/ui_extra_networks.py +++ b/modules/ui_extra_networks.py @@ -1,5 +1,6 @@ import os import io +import random import re import time import json @@ -26,7 +27,7 @@ extra_pages = shared.extra_networks debug = shared.log.trace if os.environ.get('SD_EN_DEBUG', None) is not None else lambda *args, **kwargs: None debug('Trace: EN') card_full = ''' -