mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
feat(ui): move cnet add button to top of list
This commit is contained in:
parent
401727b0c9
commit
13d182ead2
@ -67,19 +67,20 @@ const ParamControlNetCollapse = () => {
|
||||
<IAICollapse label="ControlNet" activeLabel={activeLabel}>
|
||||
<Flex sx={{ flexDir: 'column', gap: 3 }}>
|
||||
<ParamControlNetFeatureToggle />
|
||||
<IAIButton
|
||||
isDisabled={!firstModel}
|
||||
flexGrow={1}
|
||||
size="sm"
|
||||
onClick={handleClickedAddControlNet}
|
||||
>
|
||||
Add ControlNet
|
||||
</IAIButton>
|
||||
{controlNetsArray.map((c, i) => (
|
||||
<Fragment key={c.controlNetId}>
|
||||
{i > 0 && <Divider />}
|
||||
<ControlNet controlNetId={c.controlNetId} />
|
||||
</Fragment>
|
||||
))}
|
||||
<IAIButton
|
||||
isDisabled={!firstModel}
|
||||
flexGrow={1}
|
||||
onClick={handleClickedAddControlNet}
|
||||
>
|
||||
Add ControlNet
|
||||
</IAIButton>
|
||||
</Flex>
|
||||
</IAICollapse>
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user