diff options
author | xmodar <modar.alfadly@gmail.com> | 2022-10-26 23:56:11 +0300 |
---|---|---|
committer | xmodar <modar.alfadly@gmail.com> | 2022-10-26 23:57:19 +0300 |
commit | 3de036514138d7cdcba9729c975f1683a8e06b16 (patch) | |
tree | ce4c57f93e8adef880ab69040696566592748f8e | |
parent | 54cdd4e1f4168697f32882c0b33842e767b66884 (diff) |
Add id access to scripts list in the css
-rw-r--r-- | modules/scripts.py | 2 | ||||
-rw-r--r-- | style.css | 17 |
2 files changed, 7 insertions, 12 deletions
diff --git a/modules/scripts.py b/modules/scripts.py index 9323af3e..a7f36012 100644 --- a/modules/scripts.py +++ b/modules/scripts.py @@ -236,7 +236,7 @@ class ScriptRunner: with gr.Group():
create_script_ui(script, inputs, inputs_alwayson)
- dropdown = gr.Dropdown(label="Script", choices=["None"] + self.titles, value="None", type="index")
+ dropdown = gr.Dropdown(label="Script", elem_id="script_list", choices=["None"] + self.titles, value="None", type="index")
dropdown.save_to_config = True
inputs[0] = dropdown
@@ -526,19 +526,14 @@ Then, you will need to add the RTL counterpart only if needed in the rtl section :host {
direction: rtl;
}
- .file-preview,
- .gr-text-input,
- .output-html:has(.performance),
- #txt2img_style_index > label > select,
- #txt2img_style2_index > label > select,
- #img2img_style_index > label > select,
- #img2img_style2_index > label > select,
- #setting_sd_model_checkpoint > label > select,
- #modelmerger_primary_model_name > label > select,
- #modelmerger_secondary_model_name > label > select,
- #modelmerger_tertiary_model_name > label > select {
+ select, .file-preview, .gr-text-input, .output-html:has(.performance) {
direction: ltr;
}
+ #script_list > label > select,
+ #x_type > label > select,
+ #y_type > label > select {
+ direction: rtl;
+ }
.gr-radio, .gr-checkbox{
margin-left: 0.25em;
}
|