: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(notebooks): restore width toggle in menu bar (#66630)
Marius Andra28fd9f3d2f3f
diff --git a/frontend/src/scenes/notebooks/NotebookSceneMenuBar.tsx b/frontend/src/scenes/notebooks/NotebookSceneMenuBar.tsxindex e0e7cf54ff3d..921c65202a95 100644--- a/frontend/src/scenes/notebooks/NotebookSceneMenuBar.tsx+++ b/frontend/src/scenes/notebooks/NotebookSceneMenuBar.tsx@@ -116,25 +116,23 @@ function NotebookSceneMenuBarInner({ shortId }: { shortId: string }): JSX.Elemen</SceneMenuBarCheckboxItem></SceneMenuBarMenu><SceneMenuBarMenu label="View" dataAttr={`${RESOURCE_TYPE}-menubar-view`}>- {/* Table of contents and width toggle only apply to rich (non-markdown) notebooks. */}+ {/* Table of contents only applies to rich (non-markdown) notebooks. */}{!isMarkdownNotebook && (- <>- <SceneMenuBarCheckboxItem- checked={showTableOfContents}- onCheckedChange={(checked) => setShowTableOfContents(checked)}- data-attr={`${RESOURCE_TYPE}-menubar-toc`}- >- Table of contents- </SceneMenuBarCheckboxItem>- <SceneMenuBarCheckboxItem- checked={isExpanded}- onCheckedChange={(checked) => setIsExpanded(checked)}- data-attr={`${RESOURCE_TYPE}-menubar-fill-width`}- >- Fill content width- </SceneMenuBarCheckboxItem>- </>+ <SceneMenuBarCheckboxItem+ checked={showTableOfContents}+ onCheckedChange={(checked) => setShowTableOfContents(checked)}+ data-attr={`${RESOURCE_TYPE}-menubar-toc`}+ >+ Table of contents+ </SceneMenuBarCheckboxItem>)}+ <SceneMenuBarCheckboxItem+ checked={isExpanded}+ onCheckedChange={(checked) => setIsExpanded(checked)}+ data-attr={`${RESOURCE_TYPE}-menubar-fill-width`}+ >+ Fill content width+ </SceneMenuBarCheckboxItem>{showKernelToggle && (<SceneMenuBarCheckboxItemchecked={showKernelInfo}@@ -144,8 +142,7 @@ function NotebookSceneMenuBarInner({ shortId }: { shortId: string }): JSX.ElemenKernel info</SceneMenuBarCheckboxItem>)}- {/* Only divide when a display toggle actually rendered above. */}- {(!isMarkdownNotebook || showKernelToggle) && <SceneMenuBarSeparator />}+ <SceneMenuBarSeparator /><SceneMenuBarItemopensFloatingUionClick={() => selectNotebook(shortId)}