Skip to content

Commit e241c53

Browse files
authored
feat: adjust width of lora_weight for firefox (lllyasviel#2431)
1 parent c3fd57a commit e241c53

File tree

2 files changed

+7
-13
lines changed

2 files changed

+7
-13
lines changed

modules/html.py

+4-10
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,6 @@
112112
margin-left: -5px !important;
113113
}
114114
115-
.lora_enable {
116-
flex-grow: 1 !important;
117-
}
118-
119115
.lora_enable label {
120116
height: 100%;
121117
}
@@ -128,12 +124,10 @@
128124
display: none;
129125
}
130126
131-
.lora_model {
132-
flex-grow: 5 !important;
133-
}
134-
135-
.lora_weight {
136-
flex-grow: 5 !important;
127+
@-moz-document url-prefix() {
128+
.lora_weight input[type=number] {
129+
width: 80px;
130+
}
137131
}
138132
139133
'''

webui.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -355,13 +355,13 @@ def update_history_link():
355355
for i, (n, v) in enumerate(modules.config.default_loras):
356356
with gr.Row():
357357
lora_enabled = gr.Checkbox(label='Enable', value=True,
358-
elem_classes=['lora_enable', 'min_check'])
358+
elem_classes=['lora_enable', 'min_check'], scale=1)
359359
lora_model = gr.Dropdown(label=f'LoRA {i + 1}',
360360
choices=['None'] + modules.config.lora_filenames, value=n,
361-
elem_classes='lora_model')
361+
elem_classes='lora_model', scale=5)
362362
lora_weight = gr.Slider(label='Weight', minimum=modules.config.default_loras_min_weight,
363363
maximum=modules.config.default_loras_max_weight, step=0.01, value=v,
364-
elem_classes='lora_weight')
364+
elem_classes='lora_weight', scale=5)
365365
lora_ctrls += [lora_enabled, lora_model, lora_weight]
366366

367367
with gr.Row():

0 commit comments

Comments
 (0)