: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.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
fix(layout): close gap below the rail navigation page title (#128620)
Aleksander Błaszkiewiczbccfb05a3d88
diff --git a/frontend/src/layout/scenes/components/SceneStickyBar.tsx b/frontend/src/layout/scenes/components/SceneStickyBar.tsxindex 8ac904b63ebc..5ee861a68357 100644--- a/frontend/src/layout/scenes/components/SceneStickyBar.tsx+++ b/frontend/src/layout/scenes/components/SceneStickyBar.tsx@@ -1,7 +1,10 @@+import { useValues } from 'kea'import { RefObject, forwardRef, useEffect, useState } from 'react'import { cn } from 'lib/utils/css-classes'+import { todayShellLogic } from '~/layout/today/todayShellLogic'+interface SceneStickyBarProps {children: React.ReactNodeclassName?: string@@ -13,11 +16,15 @@ export const SceneStickyBar = forwardRef<HTMLDivElement, SceneStickyBarProps>(fu{ children, className, showBorderBottom = true, hasSceneTitleSection = true },ref): JSX.Element {+ const { todayRailEnabled } = useValues(todayShellLogic)+return (<divref={ref}className={cn('scene-sticky-bar @2xl/main-content:sticky z-20 bg-primary @2xl/main-content:top-[34px] space-y-2 py-2 -mx-4 px-4 rounded-t-xl',+ // The Quill title is 42px high, and sticky offsets include 16px of scroll padding.+ todayRailEnabled && '@2xl/main-content:top-6.5',// Without a scene title section the bar pins itself. Sticky offsets start inside the// scroll container's padding, so pull it up by that padding to stop content showing above.!hasSceneTitleSection && '@2xl/main-content:-top-4',