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(funnels): add left spacing to step menu in top-to-bottom layout (#68405)

Thomas Obermüller18145c6ca753
diff --git a/frontend/snapshots.yml b/frontend/snapshots.yml
index 50baeaa25c12..495431084870 100644
--- a/frontend/snapshots.yml
+++ b/frontend/snapshots.yml
@@ -2521,9 +2521,9 @@ snapshots:
insights-funnelbarhorizontalchart--default--light:
hash: v1.k794b7964.e2a2dfd74c92f8cca870c01752ef858f04f9a6262487ae3121cd85fb4668b4cd.pPtj-XUq0phM9FM0WM4XJK9ezf6mEGSeZZ5_Us7q_aI
insights-funnelbarhorizontalchart--default-narrow--dark:
- hash: v1.k794b7964.d9f704f405c68cf8a2023b3b0f6d0c51ed576c3981f8f9cfef63d27e3ab43e18.g6LROmp5EgGi5e7XdC0NdmOL2TaARVysoxgoABQk6Ow
+ hash: v1.k794b7964.eda9d9285d389cf7f6b2f24da81b0068f89afdf82aa10e9f01cae3b88951e772.IG9L_KV3jAimpHalXw5lhQZBq5QhNo0fUOsEhg0U12A
insights-funnelbarhorizontalchart--default-narrow--light:
- hash: v1.k794b7964.13f6d785a4319c847b0e695c5b93fa64a0372d4bb54824dde0926376b4cfa112.N7Yn3QPLo00ZjsQDT0MT2iGHyuJo6KNxZalO5NP-gDM
+ hash: v1.k794b7964.a349dd791a40254a87e5e41e3bd38c425f401dc16c1b68f493302e3869338126.NhwZiL-08bOUeVy6P6JbrIypIG1Yu0HWSeMtB3ljV_I
insights-funnelbarhorizontalchart--funnel-top-to-bottom-breakdown-compare--dark:
hash: v1.k794b7964.182b50e2d4db20688f53d06f38279667a0934ed21e1172c34e4ff2e531c781dc.h82CZPsRr5s01gYBbn5z4dg_hsbRfONrvPx1GOBouhA
insights-funnelbarhorizontalchart--funnel-top-to-bottom-breakdown-compare--light:
diff --git a/frontend/src/scenes/funnels/FunnelStepMore.tsx b/frontend/src/scenes/funnels/FunnelStepMore.tsx
index d2811802e376..706803ecd963 100644
--- a/frontend/src/scenes/funnels/FunnelStepMore.tsx
+++ b/frontend/src/scenes/funnels/FunnelStepMore.tsx
@@ -13,9 +13,10 @@ import { funnelDataLogic } from './funnelDataLogic'
type FunnelStepMoreProps = {
stepIndex: number
+ className?: string
}
-export function FunnelStepMore({ stepIndex }: FunnelStepMoreProps): JSX.Element | null {
+export function FunnelStepMore({ stepIndex, className }: FunnelStepMoreProps): JSX.Element | null {
const { insightProps } = useValues(insightLogic)
const { querySource } = useValues(funnelDataLogic(insightProps))
@@ -52,6 +53,7 @@ export function FunnelStepMore({ stepIndex }: FunnelStepMoreProps): JSX.Element
return (
<More
+ className={className}
placement="bottom-start"
noPadding
overlay={
diff --git a/products/product_analytics/frontend/insights/funnels/FunnelBarHorizontalChart/StepHeader.tsx b/products/product_analytics/frontend/insights/funnels/FunnelBarHorizontalChart/StepHeader.tsx
index aecba3748277..3bb0078dccdc 100644
--- a/products/product_analytics/frontend/insights/funnels/FunnelBarHorizontalChart/StepHeader.tsx
+++ b/products/product_analytics/frontend/insights/funnels/FunnelBarHorizontalChart/StepHeader.tsx
@@ -34,7 +34,7 @@ export function StepHeader({ step, stepIndex, previousStep, isUnordered, isOptio
{!isUnordered && previousStep != null && step.action_id === previousStep.action_id && (
<DuplicateStepIndicator />
)}
- <FunnelStepMore stepIndex={stepIndex} />
+ <FunnelStepMore stepIndex={stepIndex} className="ml-1" />
</div>
{showAverageTime ? (
<div className="text-secondary text-xs" title="Average time of conversion from previous step">