Skip to content

Commit 2aefa06

Browse files
blessedcoolantpsychedelicious
authored andcommitted
fix(ui): Clean up manual add forms
1 parent 5906888 commit 2aefa06

4 files changed

Lines changed: 246 additions & 217 deletions

File tree

invokeai/frontend/web/public/locales/en.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,7 @@
333333
"addNewModel": "Add New Model",
334334
"addCheckpointModel": "Add Checkpoint / Safetensor Model",
335335
"addDiffuserModel": "Add Diffusers",
336+
"scanForModels": "Scan For Models",
336337
"addManually": "Add Manually",
337338
"manual": "Manual",
338339
"name": "Name",
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import { Flex } from '@chakra-ui/react';
2+
import { ReactElement } from 'react';
3+
4+
export function IAIFormItemWrapper({
5+
children,
6+
}: {
7+
children: ReactElement | ReactElement[];
8+
}) {
9+
return (
10+
<Flex
11+
sx={{
12+
flexDirection: 'column',
13+
padding: 4,
14+
rowGap: 4,
15+
borderRadius: 'base',
16+
width: 'full',
17+
bg: 'base.900',
18+
}}
19+
>
20+
{children}
21+
</Flex>
22+
);
23+
}

0 commit comments

Comments
 (0)