: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
revert: "fix(navigation): stop mobile nav toggle from covering account menu (#63395)" (#63415)
Paul D'Ambracac5b2c18901
diff --git a/frontend/snapshots.yml b/frontend/snapshots.ymlindex c0a0286db8fb..009d42372183 100644--- a/frontend/snapshots.yml+++ b/frontend/snapshots.yml@@ -2388,10 +2388,6 @@ snapshots:hash: v1.k794b7964.41dc6774433e2a35b93d9bd50c09a063a61574d8c724b08fb35c158ce53c2c39.6_nuqiXEwUoBq8YSXUWjPeb9d4NNRHRbh9NyiFv2f8slayout-impersonation-reason-modal--upgrade-to-read-write--light:hash: v1.k794b7964.7686131e8d04113362f587050067e1daa76329becb2e33097cebc43792467919.B37QbmEEFysXtGrVVX0H_WUofFwz8yAI0cJah0GEK9s- layout-mobile-navigation--expanded-drawer--dark:- hash: v1.k794b7964.642c8c57674f43b77a1bbea2fb1d1d8b75a46b657c66a1d69f5f45a7ef1fb4cd.gkWb2ykP-tYDXp79kwOAJRr6RneDcE7QXmG4VCB5Aik- layout-mobile-navigation--expanded-drawer--light:- hash: v1.k794b7964.bb2c3b82af3ea1574dcabcbc18ec963c800894e8d8259d363ebcf7c48f3c8398.EZcVnoRQhjV50i4lwpifaFTK1YSIuAate9nClAvqU98layout-project-tree-custom-products--all-products--dark:hash: v1.k794b7964.29bfbacf987ea6bfd40ea4164bfdfe25c7c954299b44d2bcb37805c96b789573.7zgTNIGYdt6mlDI5-u5tyYd-jVwK1LugReb-My0wK-8layout-project-tree-custom-products--all-products--light:diff --git a/frontend/src/layout/panel-layout/ai-first/MobileNav.stories.tsx b/frontend/src/layout/panel-layout/ai-first/MobileNav.stories.tsxdeleted file mode 100644index f5786533aaea..000000000000--- a/frontend/src/layout/panel-layout/ai-first/MobileNav.stories.tsx+++ /dev/null@@ -1,64 +0,0 @@-import { Meta, StoryObj, type Decorator } from '@storybook/react'-import { useActions } from 'kea'-import { useEffect } from 'react'--import { App } from 'scenes/App'-import { urls } from 'scenes/urls'--import { panelLayoutLogic } from '~/layout/panel-layout/panelLayoutLogic'-import { mswDecorator } from '~/mocks/browser'--/**- * On mobile (viewport < 992px) the project nav becomes a slide-in drawer toggled by a- * floating button pinned to the top-left. These stories render the full `App` at a phone- * width with the drawer expanded so we capture the nav header: the account menu trigger- * has to clear the floating toggle, which previously overlapped it and swallowed taps on- * the org logo.- */-const withExpandedMobileNav: Decorator = (Story) => {- const { showLayoutNavBar } = useActions(panelLayoutLogic)- // The initial urlToAction closes the drawer on mobile, so open it after mount to make- // the expanded state stick for the snapshot.- useEffect(() => {- showLayoutNavBar(true)- }, [showLayoutNavBar])- return <Story />-}--const meta: Meta = {- component: App,- title: 'Layout/Mobile Navigation',- parameters: {- layout: 'fullscreen',- viewMode: 'story',- pageUrl: urls.dashboards(),- testOptions: {- includeNavigationInSnapshot: true,- viewport: { width: 414, height: 896 },- },- },- decorators: [- mswDecorator({- get: {- '/api/projects/:team_id/dashboard_templates/': {},- '/api/projects/:id/integrations': { results: [] },- '/api/organizations/:organization_id/pipeline_destinations/': { results: [] },- '/api/projects/:id/pipeline_destination_configs/': { results: [] },- '/api/projects/:id/batch_exports/': { results: [] },- '/api/projects/:id/surveys/': { results: [] },- '/api/projects/:id/surveys/responses_count/': { results: [] },- '/api/environments/:team_id/exports/': { results: [] },- '/api/environments/:team_id/events': { results: [] },- },- post: {- '/api/environments/:team_id/query/:kind': {},- },- }),- withExpandedMobileNav,- ],-}-export default meta--type Story = StoryObj--export const ExpandedDrawer: Story = {}diff --git a/frontend/src/layout/panel-layout/ai-first/Nav.tsx b/frontend/src/layout/panel-layout/ai-first/Nav.tsxindex 5a1ead6e82a4..42fb7be8b16d 100644--- a/frontend/src/layout/panel-layout/ai-first/Nav.tsx+++ b/frontend/src/layout/panel-layout/ai-first/Nav.tsx@@ -172,11 +172,6 @@ export function Nav(): JSX.Element {<divclassName={cn('flex gap-1 rounded-md w-full px-2 pt-2 pb-1', {'flex-col items-center pt-2 pb-0': isLayoutNavCollapsed,- // On mobile the fixed open/close toggle (PanelLayout.tsx, `fixed top-1 left-1`,- // a default-size iconOnly button) overlaps the account menu trigger. Indent the- // row past it so the toggle gets its own gutter — keep pl-10 ≥ the toggle's left- // offset + width if either changes.- 'pl-10': isMobileLayout,})}><NewAccountMenu isLayoutNavCollapsed={isLayoutNavCollapsed} />