Skip to content

Commit 16e087f

Browse files
add: Introduce increment and decrement buttons for workflow's seeds
1 parent cd0bc27 commit 16e087f

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

typescripts/comfyui/comfyui.tsx

+26
Original file line numberDiff line numberDiff line change
@@ -1035,6 +1035,32 @@ function renderInput(
10351035
console.log(`${name}: ${event.target.value}`)
10361036
}}
10371037
></sp-textfield>
1038+
<button
1039+
style={{
1040+
width: '26px',
1041+
}}
1042+
className="btnSquare"
1043+
onClick={() => {
1044+
inputs[name] = (
1045+
BigInt(inputs[name]) - BigInt(1)
1046+
).toString()
1047+
}}
1048+
>
1049+
{'<'}
1050+
</button>
1051+
<button
1052+
style={{
1053+
width: '26px',
1054+
}}
1055+
className="btnSquare"
1056+
onClick={() => {
1057+
inputs[name] = (
1058+
BigInt(inputs[name]) + BigInt(1)
1059+
).toString()
1060+
}}
1061+
>
1062+
{'>'}
1063+
</button>
10381064
<sp-checkbox
10391065
title="randomize seed before generation"
10401066
value={store.data.is_random_seed[node_id]}

0 commit comments

Comments
 (0)