Skip to content

Commit

Permalink
add: Introduce increment and decrement buttons for workflow's seeds
Browse files Browse the repository at this point in the history
  • Loading branch information
AbdullahAlfaraj committed Dec 9, 2023
1 parent cd0bc27 commit 16e087f
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions typescripts/comfyui/comfyui.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1035,6 +1035,32 @@ function renderInput(
console.log(`${name}: ${event.target.value}`)
}}
></sp-textfield>
<button
style={{
width: '26px',
}}
className="btnSquare"
onClick={() => {
inputs[name] = (
BigInt(inputs[name]) - BigInt(1)
).toString()
}}
>
{'<'}
</button>
<button
style={{
width: '26px',
}}
className="btnSquare"
onClick={() => {
inputs[name] = (
BigInt(inputs[name]) + BigInt(1)
).toString()
}}
>
{'>'}
</button>
<sp-checkbox
title="randomize seed before generation"
value={store.data.is_random_seed[node_id]}
Expand Down

0 comments on commit 16e087f

Please sign in to comment.