Commit f3454b8a authored by AUTOMATIC1111's avatar AUTOMATIC1111 Committed by GitHub

Merge pull request #3691 from xmodar/arabic

Revamped Arabic localization
parents 78b879b4 68760a48
This diff is collapsed.
...@@ -236,7 +236,7 @@ class ScriptRunner: ...@@ -236,7 +236,7 @@ class ScriptRunner:
with gr.Group(): with gr.Group():
create_script_ui(script, inputs, inputs_alwayson) 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 dropdown.save_to_config = True
inputs[0] = dropdown inputs[0] = dropdown
......
...@@ -522,18 +522,23 @@ If you change anything above, you need to make sure it is RTL compliant by just ...@@ -522,18 +522,23 @@ If you change anything above, you need to make sure it is RTL compliant by just
your changes through converters like https://cssjanus.github.io/ or https://rtlcss.com/. your changes through converters like https://cssjanus.github.io/ or https://rtlcss.com/.
Then, you will need to add the RTL counterpart only if needed in the rtl section below.*/ Then, you will need to add the RTL counterpart only if needed in the rtl section below.*/
@media rtl { @media rtl {
/* this part was manualy added */ /* this part was added manually */
:host { :host {
direction: rtl; direction: rtl;
} }
.output-html:has(.performance), .gr-text-input { select, .file-preview, .gr-text-input, .output-html:has(.performance), #ti_progress {
direction: ltr; direction: ltr;
} }
#script_list > label > select,
#x_type > label > select,
#y_type > label > select {
direction: rtl;
}
.gr-radio, .gr-checkbox{ .gr-radio, .gr-checkbox{
margin-left: 0.25em; margin-left: 0.25em;
} }
/* this part was automatically generated with few manual modifications */ /* automatically generated with few manual modifications */
.performance .time { .performance .time {
margin-right: unset; margin-right: unset;
margin-left: 0; margin-left: 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment