Removed FormSubGroup Component

This commit is contained in:
anapnoe 2023-02-04 07:07:00 +02:00
parent 5a8a3ef958
commit d70b14007c
4 changed files with 6 additions and 11 deletions

View File

@ -336,8 +336,8 @@ function update_token_counter(button_id) {
}
function restart_reload(){
document.body.innerHTML='<h1 style="font-family:monospace;margin-top:20%;color:lightgray;text-align:center;">Reloading...</h1>';
document.body.style.backgroundColor = "#1a1a1a";
document.body.innerHTML='<h1 style="font-family:monospace;margin-top:20%;color:lightgray;text-align:center;">Reloading...</h1>';
setTimeout(function(){location.reload()},2000)
return []

View File

@ -20,7 +20,7 @@ from PIL import Image, PngImagePlugin
from modules.call_queue import wrap_gradio_gpu_call, wrap_queued_call, wrap_gradio_call
from modules import sd_hijack, sd_models, localization, script_callbacks, ui_extensions, deepbooru, sd_vae, extra_networks, postprocessing, ui_components, ui_common, ui_postprocessing
from modules.ui_components import FormRow, FormGroup, FormSubGroup, ToolButton, FormHTML
from modules.ui_components import FormRow, FormGroup, ToolButton, FormHTML
from modules.paths import script_path, data_path
from modules.shared import opts, cmd_opts, restricted_opts
@ -202,7 +202,7 @@ def create_seed_inputs(target_interface):
#with FormRow(visible=False, elem_id=target_interface + '_subseed_row') as seed_extra_row_1:
#with gr.Group(elem_id="group-subseed", visible=False) as seed_extra_group:
with FormSubGroup(elem_id=target_interface + '_subseed_row_sub-group', visible=False) as seed_extra_group:
with FormGroup(elem_id=target_interface + '_subseed_row_sub-group', visible=False) as seed_extra_group:
seed_extras.append(seed_extra_group)

View File

@ -57,13 +57,5 @@ class DropdownMulti(gr.Dropdown):
def get_block_name(self):
return "dropdown"
class FormSubGroup(gr.Group, gr.components.FormComponent):
"""Same as gr.Row but fits inside gradio forms"""
def __init__(self, **kwargs):
self.variant = "sub-group"
super().__init__(variant="sub-group", **kwargs)
def get_block_name(self):
return "group"

View File

@ -1817,6 +1817,9 @@ input:focus {
width: 12px;
}
/* Sliders Scrollbar */
::-webkit-scrollbar-track {
box-shadow: inset 0 0 10px 10px #1a1a1a;
}