mirror of
https://github.com/simstudioai/sim.git
synced 2026-04-28 03:00:29 -04:00
improvement(layout): moved layout components into workflow
This commit is contained in:
@@ -1,17 +1,11 @@
|
||||
import { Chat } from './components/chat/chat'
|
||||
import { ControlBar } from './components/control-bar/control-bar'
|
||||
import { ErrorBoundary } from './components/error'
|
||||
import { Panel } from './components/panel/panel'
|
||||
import { Toolbar } from './components/toolbar/toolbar'
|
||||
|
||||
export default function WorkflowLayout({ children }: { children: React.ReactNode }) {
|
||||
return (
|
||||
<>
|
||||
<ControlBar />
|
||||
<Toolbar />
|
||||
{/* <Chat /> */}
|
||||
<Panel />
|
||||
<main className="grid items-start gap-2 bg-muted/40 h-[calc(100vh-4rem)]">
|
||||
<main className="bg-muted/40 overflow-hidden h-full">
|
||||
<ErrorBoundary>{children}</ErrorBoundary>
|
||||
</main>
|
||||
</>
|
||||
|
||||
@@ -23,7 +23,10 @@ import { useSubBlockStore } from '@/stores/workflows/subblock/store'
|
||||
import { useWorkflowStore } from '@/stores/workflows/workflow/store'
|
||||
import { NotificationList } from '@/app/w/[id]/components/notifications/notifications'
|
||||
import { getBlock } from '@/blocks'
|
||||
import { ControlBar } from './components/control-bar/control-bar'
|
||||
import { ErrorBoundary } from './components/error/index'
|
||||
import { Panel } from './components/panel/panel'
|
||||
import { Toolbar } from './components/toolbar/toolbar'
|
||||
import { WorkflowBlock } from './components/workflow-block/workflow-block'
|
||||
import { WorkflowEdge } from './components/workflow-edge/workflow-edge'
|
||||
import { LoopInput } from './components/workflow-loop/components/loop-input/loop-input'
|
||||
@@ -470,8 +473,11 @@ function WorkflowContent() {
|
||||
}
|
||||
|
||||
return (
|
||||
<>
|
||||
<div className="relative w-full h-[calc(100vh-4rem)]">
|
||||
<div className="flex flex-col h-screen w-full overflow-hidden">
|
||||
<ControlBar />
|
||||
<Toolbar />
|
||||
<Panel />
|
||||
<div className="flex-1 relative w-full h-full">
|
||||
<NotificationList />
|
||||
<ReactFlow
|
||||
nodes={nodes}
|
||||
@@ -509,12 +515,12 @@ function WorkflowContent() {
|
||||
noWheelClassName="allow-scroll"
|
||||
edgesFocusable={true}
|
||||
edgesUpdatable={true}
|
||||
className="workflow-container"
|
||||
className="workflow-container h-full"
|
||||
>
|
||||
<Background />
|
||||
</ReactFlow>
|
||||
</div>
|
||||
</>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user