File tree 2 files changed +7
-13
lines changed
2 files changed +7
-13
lines changed Original file line number Diff line number Diff line change 112
112
margin-left: -5px !important;
113
113
}
114
114
115
- .lora_enable {
116
- flex-grow: 1 !important;
117
- }
118
-
119
115
.lora_enable label {
120
116
height: 100%;
121
117
}
128
124
display: none;
129
125
}
130
126
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
+ }
137
131
}
138
132
139
133
'''
Original file line number Diff line number Diff line change @@ -355,13 +355,13 @@ def update_history_link():
355
355
for i , (n , v ) in enumerate (modules .config .default_loras ):
356
356
with gr .Row ():
357
357
lora_enabled = gr .Checkbox (label = 'Enable' , value = True ,
358
- elem_classes = ['lora_enable' , 'min_check' ])
358
+ elem_classes = ['lora_enable' , 'min_check' ], scale = 1 )
359
359
lora_model = gr .Dropdown (label = f'LoRA { i + 1 } ' ,
360
360
choices = ['None' ] + modules .config .lora_filenames , value = n ,
361
- elem_classes = 'lora_model' )
361
+ elem_classes = 'lora_model' , scale = 5 )
362
362
lora_weight = gr .Slider (label = 'Weight' , minimum = modules .config .default_loras_min_weight ,
363
363
maximum = modules .config .default_loras_max_weight , step = 0.01 , value = v ,
364
- elem_classes = 'lora_weight' )
364
+ elem_classes = 'lora_weight' , scale = 5 )
365
365
lora_ctrls += [lora_enabled , lora_model , lora_weight ]
366
366
367
367
with gr .Row ():
You can’t perform that action at this time.
0 commit comments