: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): Makes nodes to be resizeable in markdown notebooks (#63934)
Sinan Kucukkoselerbbe325020277
diff --git a/frontend/snapshots.yml b/frontend/snapshots.ymlindex 285df19d6886..1717cba1f186 100644--- a/frontend/snapshots.yml+++ b/frontend/snapshots.yml@@ -588,6 +588,10 @@ snapshots:hash: v1.k794b7964.6d2d8c0c591f6606e1ca0c3a0d4317b471f6d443becd4c54dadb68f5344522ef.RzGSN_LKMlJS_45lDhlggpz0CfmfxQTEXneg3BN-9EUcomponents-hogcharts-linechart--combined-overlays--light:hash: v1.k794b7964.32fbbd7a2fd12f2e8b83c3cf2256017b430b265dfb12e01c01e5bf84b3137c15.VXi9bnhHVNCnT5mZXHrHAW_NO08M55HIduoH7TJ4D9I+ components-hogcharts-linechart--confidence-band-below-zero--dark:+ hash: v1.k794b7964.0c7aaceb394edfc991d2543566ac409107f32531d0e4d52456e53b5f69703d75.tTkxlTKSJ7po5VXuEM6fbyA8rZhfDmnatcxIvGdAMJg+ components-hogcharts-linechart--confidence-band-below-zero--light:+ hash: v1.k794b7964.b2d5510efc17ecc1cd6f34b25adf964fed3c56f6752f3e95cf0b23b59813b2da.M4hPw2IWfpnb8qYRYlZ4PD-eLfoknPJK4BVH86n_dc4components-hogcharts-linechart--dual-y-axis--dark:hash: v1.k794b7964.b6f9208fffa7f97654c53f4929f71c2798e88eb9d103858370de16d56f7dee37.EMijZsTNlT-Y8MhJLoo-AhhKkMoIHH3fQH_ydyXOPxscomponents-hogcharts-linechart--dual-y-axis--light:diff --git a/frontend/src/lib/components/MarkdownNotebook/MarkdownNotebook.scss b/frontend/src/lib/components/MarkdownNotebook/MarkdownNotebook.scssindex d1ec873af68e..15d67b906237 100644--- a/frontend/src/lib/components/MarkdownNotebook/MarkdownNotebook.scss+++ b/frontend/src/lib/components/MarkdownNotebook/MarkdownNotebook.scss@@ -1737,7 +1737,10 @@ button.MarkdownNotebook__component-title:focus-visible {.MarkdownNotebook__real-node-content {position: relative;display: flex;- flex: 1;++ // flex-basis must stay `auto` (not the `0%` from the `flex: 1` shorthand), otherwise it+ // overrides the inline `height` and the resize drag has no visible effect.+ flex: 1 1 auto;flex-direction: column;min-height: 8rem;overflow: hidden;diff --git a/frontend/src/scenes/notebooks/Notebook/markdownNotebookRegistry.tsx b/frontend/src/scenes/notebooks/Notebook/markdownNotebookRegistry.tsxindex f54c1165bd12..0d7fbac3f127 100644--- a/frontend/src/scenes/notebooks/Notebook/markdownNotebookRegistry.tsx+++ b/frontend/src/scenes/notebooks/Notebook/markdownNotebookRegistry.tsx@@ -321,6 +321,7 @@ export function RealNotebookNodeEdit(props: NotebookComponentRenderProps): JSX.Eexport function RealNotebookNodeComponent({node,mode,+ notebookMode,updateProps,deleteNode,forceEditing = false,@@ -337,6 +338,7 @@ export function RealNotebookNodeComponent({<MountedRealNotebookNodeComponentnode={node}mode={mode}+ notebookMode={notebookMode}updateProps={updateProps}deleteNode={deleteNode}editOnly={editOnly}