mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
ui: Match styling of img2img to the rest of the accordions
This commit is contained in:
parent
0a936696c3
commit
a08189d457
@ -1,3 +1,4 @@
|
||||
import { Flex } from '@chakra-ui/react';
|
||||
import { RootState } from 'app/store';
|
||||
import { useAppDispatch, useAppSelector } from 'app/storeHooks';
|
||||
import IAISwitch from 'common/components/IAISwitch';
|
||||
@ -18,11 +19,18 @@ export default function ImageToImageToggle() {
|
||||
dispatch(isImageToImageEnabledChanged(e.target.checked));
|
||||
|
||||
return (
|
||||
<IAISwitch
|
||||
label={t('common.img2img')}
|
||||
isChecked={isImageToImageEnabled}
|
||||
width="auto"
|
||||
onChange={handleChange}
|
||||
/>
|
||||
<Flex background="base.800" py={1.5} px={4} borderRadius={4}>
|
||||
<IAISwitch
|
||||
label={t('common.img2img')}
|
||||
isChecked={isImageToImageEnabled}
|
||||
width="full"
|
||||
onChange={handleChange}
|
||||
justifyContent="space-between"
|
||||
formLabelProps={{
|
||||
fontWeight: 'bold',
|
||||
color: 'base.200',
|
||||
}}
|
||||
/>
|
||||
</Flex>
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user