: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(frontend): keep the debug bar from covering the today layout (#130261)
Gustavo H. Strassburger57f0a06ad5e9
diff --git a/frontend/src/layout/navigation-3000/Navigation.scss b/frontend/src/layout/navigation-3000/Navigation.scssindex 4c7bbbab184a..5753b78c2c5a 100644--- a/frontend/src/layout/navigation-3000/Navigation.scss+++ b/frontend/src/layout/navigation-3000/Navigation.scss@@ -722,11 +722,11 @@display: grid;- // Viewport-height navigation must not force the content row underneath the terminal dock.+ // Viewport-height navigation must not force the content row underneath the terminal dock or the DEBUG bar.grid-template: 'left content' minmax(0, 1fr) / var(--left-nav-width) minmax(0, 1fr);- height: calc(100vh - var(--terminal-dock-height, 0px));+ height: calc(100vh - var(--terminal-dock-height, 0px) - var(--bottom-notice-height, 0px));height: calc(- 100dvh - var(--terminal-dock-height, 0px)+ 100dvh - var(--terminal-dock-height, 0px) - var(--bottom-notice-height, 0px)); // see .Navigation3000 — keep bottom-anchored UI reachable on mobileoverflow: hidden;diff --git a/frontend/src/layout/today/TodayShell.scss b/frontend/src/layout/today/TodayShell.scssindex 5d58efd2746f..5572375229d7 100644--- a/frontend/src/layout/today/TodayShell.scss+++ b/frontend/src/layout/today/TodayShell.scss@@ -155,7 +155,7 @@ body {.TodayShell__drawer {position: fixed;top: calc(var(--today-top-bar-height, 0px) + var(--today-frame-inset));- bottom: var(--today-frame-inset);+ bottom: calc(var(--today-frame-inset) + var(--bottom-notice-height, 0px));// A gap off the rail, so the floating sidebar reads as a separate layer.left: calc(var(--today-rail-width) + var(--today-frame-inset) * 2);diff --git a/frontend/src/styles/base.scss b/frontend/src/styles/base.scssindex c1024f82aeac..2908cf96076f 100644--- a/frontend/src/styles/base.scss+++ b/frontend/src/styles/base.scss@@ -1596,6 +1596,16 @@// Bottom notice (DEBUG=1 mode)+ // DebugNotice removes the fixed bar when it mounts in the classic navbar. A layout without DebugNotice keeps the+ // bar, so the app layout subtracts this height to stop the bar from covering its bottom edge.+ :root:has(#bottom-notice.tricolor) {+ --bottom-notice-height: 1.5rem;++ @media screen and (min-width: 750px) {+ --bottom-notice-height: 2rem;+ }+ }+#bottom-notice {position: fixed;bottom: 0;