Skip to content

Commit

Permalink
fix(ui): Right panel overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
topher-lo committed Mar 5, 2024
1 parent 7f7f56d commit 5bc791e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 11 deletions.
12 changes: 5 additions & 7 deletions frontend/src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,11 @@ export default function DashboardPage() {
<SelectedWorkflowProvider>
<div className="flex flex-col h-screen">
<Navbar />
<div className="flex flex-col flex-grow">
<Workspace
defaultLayout={defaultLayout}
defaultCollapsed={defaultCollapsed}
navCollapsedSize={4}
/>
</div>
<Workspace
defaultLayout={defaultLayout}
defaultCollapsed={defaultCollapsed}
navCollapsedSize={4}
/>
</div>
</SelectedWorkflowProvider>
</DefaultQueryClientProvider>
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/forms/action.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ export function ActionForm({ actionId, actionType }: ActionFormProps): React.JSX
}

return (
<ScrollArea>
<ScrollArea className="h-full">
<Form {...form}>
<form onSubmit={form.handleSubmit(onSubmit)}>
<div className="space-y-4 p-4">
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/components/panel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export function WorkflowPanel() {
});

return (
<div className="flex-1">
<>
{isActionNodeSelected && selectedActionNodeId && selectedActionNodeType ? (
<ActionForm actionId={selectedActionNodeId} actionType={selectedActionNodeType} />
) : (!isActionNodeSelected && workflowId && workflowTitle && workflowDescription && workflowStatus) ? (
Expand All @@ -53,6 +53,6 @@ export function WorkflowPanel() {
</div>
</div>
)}
</div>
</>
);
}
1 change: 0 additions & 1 deletion frontend/src/components/workspace.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ export function Workspace({
sizes
)}`
}}
className="h-full items-stretch"
>
<ResizablePanel
defaultSize={defaultLayout[0]}
Expand Down

0 comments on commit 5bc791e

Please sign in to comment.