added user.css support
This commit is contained in:
parent
77dcb21688
commit
8d197b6a92
3 changed files with 6 additions and 3 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -16,3 +16,4 @@ __pycache__
|
|||
/webui-user.bat
|
||||
/webui-user.sh
|
||||
/interrogate
|
||||
/user.css
|
||||
|
|
|
@ -801,6 +801,11 @@ def create_ui(txt2img, img2img, run_extras, run_pnginfo):
|
|||
with open(os.path.join(script_path, "style.css"), "r", encoding="utf8") as file:
|
||||
css = file.read()
|
||||
|
||||
if os.path.exists(os.path.join(script_path, "style.css")):
|
||||
with open(os.path.join(script_path, "user.css"), "r", encoding="utf8") as file:
|
||||
usercss = file.read()
|
||||
css += usercss
|
||||
|
||||
if not cmd_opts.no_progressbar_hiding:
|
||||
css += css_hide_progressbar
|
||||
|
||||
|
|
|
@ -21,9 +21,6 @@
|
|||
min-height: 4.5em;
|
||||
}
|
||||
|
||||
#txt2img_gallery, #img2img_gallery{
|
||||
min-height: 768px;
|
||||
}
|
||||
#txt2img_gallery img, #img2img_gallery img{
|
||||
object-fit: scale-down;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue