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(settings): align project banner with settings content column (#59026)

posthog[bot]4cd525bf5089
diff --git a/frontend/src/layout/navigation-3000/Navigation.scss b/frontend/src/layout/navigation-3000/Navigation.scss
index 959db125e3a0..57206af08335 100644
--- a/frontend/src/layout/navigation-3000/Navigation.scss
+++ b/frontend/src/layout/navigation-3000/Navigation.scss
@@ -6,6 +6,7 @@
--scene-layout-header-height: 40px;
--scene-title-section-height: 50px;
--side-panel-min-width: 28rem;
+ --settings-nav-width: 16rem;
// Layout vars consumed across scenes. Defined at the root so they cascade
// in every layout mode — `.Navigation3000` only renders in non-`full`
diff --git a/frontend/src/layout/navigation-3000/Navigation.tsx b/frontend/src/layout/navigation-3000/Navigation.tsx
index 678357276607..344c0f0a010e 100644
--- a/frontend/src/layout/navigation-3000/Navigation.tsx
+++ b/frontend/src/layout/navigation-3000/Navigation.tsx
@@ -10,7 +10,7 @@ import { cn } from 'lib/utils/css-classes'
import { maxGlobalLogic } from 'scenes/max/maxGlobalLogic'
import { useMaxTool } from 'scenes/max/useMaxTool'
import { sceneLogic } from 'scenes/sceneLogic'
-import { SceneConfig } from 'scenes/sceneTypes'
+import { Scene, SceneConfig } from 'scenes/sceneTypes'
import { PanelLayout } from '~/layout/panel-layout/PanelLayout'
import { panelLayoutLogic } from '~/layout/panel-layout/panelLayoutLogic'
@@ -45,7 +45,7 @@ export function Navigation({
const { mainContentRect, isLayoutNavCollapsed, isLayoutPanelVisible } = useValues(panelLayoutLogic)
const { setMainContentRef, setMainContentRect } = useActions(panelLayoutLogic)
const { setTabScrollDepth } = useActions(sceneLogic)
- const { activeTabId } = useValues(sceneLogic)
+ const { activeTabId, activeSceneId } = useValues(sceneLogic)
const { registerScenePanelElement } = useActions(sceneLayoutLogic)
const { scenePanelIsPresent, scenePanelOpenManual } = useValues(sceneLayoutLogic)
const { sidePanelOpen } = useValues(sidePanelStateLogic)
@@ -187,6 +187,11 @@ export function Navigation({
<div
className={cn({
'px-4 empty:hidden': sceneConfig?.layout === 'app-raw-no-header',
+ // Settings scene's nav is viewport-fixed on desktop, so the
+ // banner needs to clear it (nav width + column gap) to align
+ // with the settings content column.
+ 'md:ml-[calc(var(--settings-nav-width)+2rem)]':
+ activeSceneId === Scene.Settings,
})}
>
<ProjectNotice
diff --git a/frontend/src/scenes/settings/Settings.scss b/frontend/src/scenes/settings/Settings.scss
index d0c64e14c4cd..7a2dfca8e7ec 100644
--- a/frontend/src/scenes/settings/Settings.scss
+++ b/frontend/src/scenes/settings/Settings.scss
@@ -1,6 +1,4 @@
.Settings {
- --settings-nav-width: 16rem;
-
display: flex;
gap: 2rem;
align-items: flex-start;