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): wrap overview metric cards like the metrics tab (#118469)

Daniel Marchukfbb9c57a2d45
diff --git a/products/workflows/frontend/Workflows/overview/WorkflowOverview.tsx b/products/workflows/frontend/Workflows/overview/WorkflowOverview.tsx
index ca458d69cdff..c41c5750c6c9 100644
--- a/products/workflows/frontend/Workflows/overview/WorkflowOverview.tsx
+++ b/products/workflows/frontend/Workflows/overview/WorkflowOverview.tsx
@@ -128,7 +128,7 @@ export function WorkflowOverview({ id }: { id: string }): JSX.Element {
</LemonBanner>
) : null}
- <div className="grid grid-cols-1 gap-2 @md:grid-cols-2 @3xl:grid-cols-3 @6xl:grid-cols-5">
+ <div className="flex flex-wrap gap-2" data-attr="workflow-overview-metric-cards">
<WorkflowMetricCard
name="Started"
description="Workflow runs that started in this date range."
@@ -141,7 +141,6 @@ export function WorkflowOverview({ id }: { id: string }): JSX.Element {
color={METRIC_COLORS['Workflows started']}
colorIfZero={getColorVar('muted')}
compact
- className="min-w-0"
/>
{hasEmail || hasPush ? (
<WorkflowMetricCard
@@ -154,7 +153,6 @@ export function WorkflowOverview({ id }: { id: string }): JSX.Element {
seriesColors={METRIC_COLORS}
colorIfZero={getColorVar('muted')}
compact
- className="min-w-0"
/>
) : null}
{hasEmail || hasPush ? (
@@ -169,7 +167,6 @@ export function WorkflowOverview({ id }: { id: string }): JSX.Element {
colorIfZero={getColorVar('muted')}
footer={shareOf(total(opened), sentTotal, 'sent')}
compact
- className="min-w-0"
/>
) : null}
{hasEmail ? (
@@ -186,7 +183,6 @@ export function WorkflowOverview({ id }: { id: string }): JSX.Element {
colorIfZero={getColorVar('muted')}
footer={shareOf(total(clicked), sentTotal, 'sent')}
compact
- className="min-w-0"
/>
) : null}
{hasConversionGoal ? (
@@ -227,7 +223,6 @@ export function WorkflowOverview({ id }: { id: string }): JSX.Element {
) : null
}
compact
- className="min-w-0"
/>
) : null}
</div>