Skip to content

Commit dc7914a

Browse files
committed
some fixes in options dropdown
1 parent b311b9a commit dc7914a

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

electron_app/src/assets/css/theme.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@
116116
.options_input {
117117
display: flex;
118118
flex-direction: row;
119-
justify-content: flex-end;
119+
justify-content: flex-start;
120120
padding: 8px;
121121
gap: 12px;
122122
background-color: #F1F4FA;
@@ -258,7 +258,7 @@
258258
.options_input {
259259
display: flex;
260260
flex-direction: row;
261-
justify-content: flex-end;
261+
justify-content: flex-start;
262262
padding: 8px;
263263
gap: 12px;
264264
background-color: #303030;

electron_app/src/components_bare/SDOptionsDropdown.vue

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,17 @@
66
<div class="l_button" style="">Options</div>
77
</template>
88

9-
<b-dropdown-form style="min-width: 350px;max-height: calc(100vh - 250px);overflow-y: scroll;">
9+
<b-dropdown-form style="min-width: 350px;max-height: calc(100vh - 300px); overflow-y: scroll;">
10+
<br>
1011
<div style="display: flex;flex-wrap: wrap;justify-content: center;gap: 15px;">
1112
<span v-if="!elements_hidden.includes('inp_img_strength')">
1213
<div style="display: flex;flex-direction: column;width: 300px;">
1314
<div class="options_title_box">
1415
<span>Input Strength</span>
15-
<span class="options_desc">How closely to follow your prompt (lower
16-
numbers give the AI more creativity, in percent)</span>
16+
<span class="options_desc">How closely to stick to the input image. (lower
17+
numbers makes the AI do more change)</span>
1718
</div>
18-
<input type="range" min="10" max="90" value="75" step='0.01' class="slider"
19+
<input type="range" min="10" max="90" :value="options_model_values.inp_img_strength*100" step='0.01' class="slider"
1920
@input="SetStrength" list='tickmarks'>
2021
<div id="tickmarks">
2122
<p>10</p>
@@ -173,7 +174,7 @@
173174
<span class="options_desc">How closely to follow your prompt (lower
174175
numbers give the AI more creativity)</span>
175176
</div>
176-
<input type="range" min="0" max="20" value="7.5" step='0.01' class="slider"
177+
<input type="range" min="0" max="20" v-model="options_model_values.guidence_scale" step='0.01' class="slider"
177178
@input="SetGuidenceScale" list='tickmarks'>
178179
<div id="tickmarks">
179180
<p>0</p>
@@ -247,12 +248,12 @@ export default {
247248
SetStrength(e) {
248249
var value = (e.target.value - e.target.min) / (e.target.max - e.target.min) * 100
249250
e.target.style.background = 'linear-gradient(to right, var(--slider-progress) 0%, var(--slider-progress) ' + value + '%, var(--slider-progress_end) ' + value + '%, var(--slider-progress_end) 100%)'
250-
this.options_model_values.strength = Number(e.target.value / 100);
251+
this.options_model_values.inp_img_strength = Number(e.target.value / 100);
251252
},
252253
SetGuidenceScale(e) {
253254
var value = (e.target.value - e.target.min) / (e.target.max - e.target.min) * 100
254255
e.target.style.background = 'linear-gradient(to right, var(--slider-progress) 0%, var(--slider-progress) ' + value + '%, var(--slider-progress_end) ' + value + '%, var(--slider-progress_end) 100%)'
255-
this.options_model_values.guidance_scale = Number(e.target.value)
256+
// this.options_model_values.guidence_scale = Number(e.target.value)
256257
}
257258
},
258259
}

0 commit comments

Comments
 (0)