mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix: Restyle the WorkflowPanel
This commit is contained in:
parent
ca3e826a14
commit
4f088252db
@ -1,19 +1,20 @@
|
|||||||
|
import { Flex } from '@chakra-ui/react';
|
||||||
import CancelButton from 'features/parameters/components/ProcessButtons/CancelButton';
|
import CancelButton from 'features/parameters/components/ProcessButtons/CancelButton';
|
||||||
import InvokeButton from 'features/parameters/components/ProcessButtons/InvokeButton';
|
import InvokeButton from 'features/parameters/components/ProcessButtons/InvokeButton';
|
||||||
import { memo } from 'react';
|
import { memo } from 'react';
|
||||||
import ResetWorkflowButton from './ResetWorkflowButton';
|
|
||||||
import LoadWorkflowButton from './LoadWorkflowButton';
|
import LoadWorkflowButton from './LoadWorkflowButton';
|
||||||
|
import ResetWorkflowButton from './ResetWorkflowButton';
|
||||||
import SaveWorkflowButton from './SaveWorkflowButton';
|
import SaveWorkflowButton from './SaveWorkflowButton';
|
||||||
|
|
||||||
const WorkflowEditorControls = () => {
|
const WorkflowEditorControls = () => {
|
||||||
return (
|
return (
|
||||||
<>
|
<Flex sx={{ gap: 2 }}>
|
||||||
<InvokeButton />
|
<InvokeButton />
|
||||||
<CancelButton />
|
<CancelButton />
|
||||||
<ResetWorkflowButton />
|
<ResetWorkflowButton />
|
||||||
<SaveWorkflowButton />
|
<SaveWorkflowButton />
|
||||||
<LoadWorkflowButton />
|
<LoadWorkflowButton />
|
||||||
</>
|
</Flex>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
import { Flex } from '@chakra-ui/react';
|
||||||
import ResizeHandle from 'features/ui/components/tabs/ResizeHandle';
|
import ResizeHandle from 'features/ui/components/tabs/ResizeHandle';
|
||||||
import { usePanelStorage } from 'features/ui/hooks/usePanelStorage';
|
import { usePanelStorage } from 'features/ui/hooks/usePanelStorage';
|
||||||
import { memo, useCallback, useRef, useState } from 'react';
|
import { memo, useCallback, useRef, useState } from 'react';
|
||||||
@ -7,6 +8,7 @@ import {
|
|||||||
PanelGroup,
|
PanelGroup,
|
||||||
} from 'react-resizable-panels';
|
} from 'react-resizable-panels';
|
||||||
import 'reactflow/dist/style.css';
|
import 'reactflow/dist/style.css';
|
||||||
|
import WorkflowEditorControls from '../flow/panels/TopCenterPanel/WorkflowEditorControls';
|
||||||
import InspectorPanel from './inspector/InspectorPanel';
|
import InspectorPanel from './inspector/InspectorPanel';
|
||||||
import WorkflowPanel from './workflow/WorkflowPanel';
|
import WorkflowPanel from './workflow/WorkflowPanel';
|
||||||
|
|
||||||
@ -21,7 +23,10 @@ const NodeEditorPanelGroup = () => {
|
|||||||
}
|
}
|
||||||
panelGroupRef.current.setLayout([50, 50]);
|
panelGroupRef.current.setLayout([50, 50]);
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
<Flex sx={{ flexDir: 'column', gap: 2, height: '100%', width: '100%' }}>
|
||||||
|
<WorkflowEditorControls />
|
||||||
<PanelGroup
|
<PanelGroup
|
||||||
ref={panelGroupRef}
|
ref={panelGroupRef}
|
||||||
id="workflow-panel-group"
|
id="workflow-panel-group"
|
||||||
@ -57,6 +62,7 @@ const NodeEditorPanelGroup = () => {
|
|||||||
<InspectorPanel />
|
<InspectorPanel />
|
||||||
</Panel>
|
</Panel>
|
||||||
</PanelGroup>
|
</PanelGroup>
|
||||||
|
</Flex>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -8,9 +8,8 @@ import {
|
|||||||
} from '@chakra-ui/react';
|
} from '@chakra-ui/react';
|
||||||
import { memo } from 'react';
|
import { memo } from 'react';
|
||||||
import WorkflowGeneralTab from './WorkflowGeneralTab';
|
import WorkflowGeneralTab from './WorkflowGeneralTab';
|
||||||
import WorkflowLinearTab from './WorkflowLinearTab';
|
|
||||||
import WorkflowJSONTab from './WorkflowJSONTab';
|
import WorkflowJSONTab from './WorkflowJSONTab';
|
||||||
import WorkflowEditorControls from '../../flow/panels/TopCenterPanel/WorkflowEditorControls';
|
import WorkflowLinearTab from './WorkflowLinearTab';
|
||||||
|
|
||||||
const WorkflowPanel = () => {
|
const WorkflowPanel = () => {
|
||||||
return (
|
return (
|
||||||
@ -25,9 +24,6 @@ const WorkflowPanel = () => {
|
|||||||
gap: 2,
|
gap: 2,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Flex gap={2}>
|
|
||||||
<WorkflowEditorControls />
|
|
||||||
</Flex>
|
|
||||||
<Tabs
|
<Tabs
|
||||||
variant="line"
|
variant="line"
|
||||||
sx={{ display: 'flex', flexDir: 'column', w: 'full', h: 'full' }}
|
sx={{ display: 'flex', flexDir: 'column', w: 'full', h: 'full' }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user