Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

fix(workflows): fit the workflow canvas to the space below the header (#122498)

Ben Smithf6b17d2790c2
diff --git a/frontend/snapshots.yml b/frontend/snapshots.yml
index 881906d5f9d0..c19d17144208 100644
--- a/frontend/snapshots.yml
+++ b/frontend/snapshots.yml
@@ -14255,9 +14255,9 @@ snapshots:
scenes-app-notebooks-widget-views--survey-views--light:
hash: v1.k794b7964.cf80404856645fd4b39cabb876b1b80f7ab50960cda1ae4df8780de0206d2619.xkeEhbVBdpoOxW1276sZhbGY6ZFHbZyf5w7Ij4iExzo
scenes-app-notebooks-widget-views--workflow-views--dark:
- hash: v1.k794b7964.dded071925e13813948059d3a851fda7045079765dd39c35a1909a33f4818670.uLBVI91IfZ7a2kAB6tnEs6CHaEQ_xl-6gI91X4096sM
+ hash: v1.k794b7964.1010624ac986e0cb262358f044e35a019243041f6e3ebbc7d885ca4742ece97b.9DC01-1aciZlk6THhuBWfJdwlAXHbxvoeRLSWu3TR0I
scenes-app-notebooks-widget-views--workflow-views--light:
- hash: v1.k794b7964.0f2c4009de209735e6377ca07494437043d917c9bfe5c54ab6a951ea24ecd210.e5F9jluVom8liP30XkBJmu0W-lOwBWbWF6kXYiY8R0s
+ hash: v1.k794b7964.72cda06b7242af9b6a4d9177d40c31af68f9a3162e373b0acb6c3ad5154cabfb.IjwXYk9nakhyYyWZUt3sWnLNm_Hvwp4DFNpMjD-C-WM
scenes-app-oauth-authorize--access-controls-apply--dark:
hash: v1.k794b7964.4f421d7fb891d0a77a0211d80ec9efc6899b84fb14cf331833cd175bdc738b10.doktEISQ1Rqmw7byfMxsgoY3VnXeI5pvbAXUr8yfsT0
scenes-app-oauth-authorize--access-controls-apply--light:
diff --git a/products/workflows/frontend/Workflows/Workflow.tsx b/products/workflows/frontend/Workflows/Workflow.tsx
index ab0832f4a38e..eb121046f554 100644
--- a/products/workflows/frontend/Workflows/Workflow.tsx
+++ b/products/workflows/frontend/Workflows/Workflow.tsx
@@ -20,7 +20,7 @@ export function Workflow(props: WorkflowLogicProps): JSX.Element {
const treeViewEnabled = useFeatureFlag('WORKFLOWS_LINEAR_VIEW')
return (
- <div className="relative flex h-[calc(100vh-13rem)] max-h-full min-h-[25rem] grow flex-col overflow-hidden rounded-md border">
+ <div className="relative flex min-h-[25rem] flex-1 flex-col overflow-hidden rounded-md border">
<WorkflowStatusBar
{...props}
editorLayout={editorLayout}
diff --git a/products/workflows/frontend/Workflows/WorkflowScene.tsx b/products/workflows/frontend/Workflows/WorkflowScene.tsx
index 1bc06a9410ab..09b7847055b9 100644
--- a/products/workflows/frontend/Workflows/WorkflowScene.tsx
+++ b/products/workflows/frontend/Workflows/WorkflowScene.tsx
@@ -266,7 +266,8 @@ export function WorkflowScene(props: WorkflowSceneLogicProps): JSX.Element {
tabs={tabs}
sceneInset
className={clsx({
- 'flex flex-col grow [&>div]:flex [&>div]:flex-col [&>div]:grow': currentTab === 'workflow',
+ 'flex flex-1 flex-col [&>div]:flex [&>div]:flex-1 [&>div]:flex-col':
+ activeTab === 'workflow',
})}
/>
)}