: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
feat(today): give notebooks the app background under the today layout (#119079)
Adam Leith17ad2bbc9a3b
diff --git a/frontend/src/layout/navigation-3000/Navigation.tsx b/frontend/src/layout/navigation-3000/Navigation.tsxindex ac9648f7385c..065eca8b9fe3 100644--- a/frontend/src/layout/navigation-3000/Navigation.tsx+++ b/frontend/src/layout/navigation-3000/Navigation.tsx@@ -176,9 +176,11 @@ export function Navigation({style={{...theme?.mainStyle,- '--scene-layout-background': sceneConfig?.canvasBackground- ? 'var(--color-bg-surface-primary)'- : 'var(--color-bg-primary)',+ // The Today layout keeps one background on every scene, so it leaves out the notebook canvas.+ '--scene-layout-background':+ sceneConfig?.canvasBackground && !todayRail+ ? 'var(--color-bg-surface-primary)'+ : 'var(--color-bg-primary)','--side-panel-width': sidePanelWidth + 'px','--project-navbar-width':!mobileLayout && !isLayoutNavCollapsed ? `${navbarWidth}px` : undefined,diff --git a/frontend/src/scenes/notebooks/Notebook/Notebook.scss b/frontend/src/scenes/notebooks/Notebook/Notebook.scssindex dd84c1cdee30..992e1f53ce93 100644--- a/frontend/src/scenes/notebooks/Notebook/Notebook.scss+++ b/frontend/src/scenes/notebooks/Notebook/Notebook.scss@@ -678,6 +678,12 @@ body[theme='dark'].has-markdown-v2-notebook .main-content-container > main {--notebook-markdown-v2-page-background: var(--color-bg-surface-primary);}+// The Today layout keeps one background on every scene, so a notebook takes the app background there in both themes.+body.has-markdown-v2-notebook .TodayAppLayout .main-content-container > main,+[theme] .TodayAppLayout .Notebook--markdown-v2 {+ --notebook-markdown-v2-page-background: var(--color-bg-primary);+}+.Notebook--markdown-v2 {--notebook-markdown-v2-page-background: var(--color-bg-primary);