From d70b14007c64ac3b1fca266801f9f0d9933c1b54 Mon Sep 17 00:00:00 2001 From: anapnoe <124302297+anapnoe@users.noreply.github.com> Date: Sat, 4 Feb 2023 07:07:00 +0200 Subject: [PATCH] Removed FormSubGroup Component --- javascript/ui.js | 2 +- modules/ui.py | 4 ++-- modules/ui_components.py | 8 -------- style.css | 3 +++ 4 files changed, 6 insertions(+), 11 deletions(-) diff --git a/javascript/ui.js b/javascript/ui.js index 7541181f..b14a11f5 100644 --- a/javascript/ui.js +++ b/javascript/ui.js @@ -336,8 +336,8 @@ function update_token_counter(button_id) { } function restart_reload(){ - document.body.innerHTML='

Reloading...

'; document.body.style.backgroundColor = "#1a1a1a"; + document.body.innerHTML='

Reloading...

'; setTimeout(function(){location.reload()},2000) return [] diff --git a/modules/ui.py b/modules/ui.py index 74e92301..177f853b 100644 --- a/modules/ui.py +++ b/modules/ui.py @@ -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) diff --git a/modules/ui_components.py b/modules/ui_components.py index eff7c2d6..476d4763 100644 --- a/modules/ui_components.py +++ b/modules/ui_components.py @@ -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" \ No newline at end of file diff --git a/style.css b/style.css index 4e9dfc0b..9f28578c 100644 --- a/style.css +++ b/style.css @@ -1817,6 +1817,9 @@ input:focus { width: 12px; } + +/* Sliders Scrollbar */ + ::-webkit-scrollbar-track { box-shadow: inset 0 0 10px 10px #1a1a1a; }