Skip to content

: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.

fix(notebooks): stop charts overflowing the notebook node (#76071)

Sean Malliad79d8ba274a1
diff --git a/frontend/src/queries/nodes/InsightViz/InsightViz.scss b/frontend/src/queries/nodes/InsightViz/InsightViz.scss
index 1ef577cf698d..86ca533b9ef0 100644
--- a/frontend/src/queries/nodes/InsightViz/InsightViz.scss
+++ b/frontend/src/queries/nodes/InsightViz/InsightViz.scss
@@ -93,6 +93,7 @@
min-height: 0;
.NotebookNode &,
+ .MarkdownNotebook__real-node &,
.InsightCard &,
.ExportedInsight &,
.WebAnalyticsDashboard & {
@@ -184,6 +185,7 @@
}
.NotebookNode &,
+ .MarkdownNotebook__real-node &,
.InsightCard &,
.ExportedInsight &,
.WebAnalyticsDashboard & {
@@ -282,7 +284,8 @@
&--type-trends {
min-height: var(--insight-viz-min-height);
- .NotebookNode & {
+ .NotebookNode &,
+ .MarkdownNotebook__real-node & {
min-height: 0;
}
diff --git a/frontend/src/scenes/insights/views/BoldNumber/BoldNumber.scss b/frontend/src/scenes/insights/views/BoldNumber/BoldNumber.scss
index 33eabcc972e2..aa4588832836 100644
--- a/frontend/src/scenes/insights/views/BoldNumber/BoldNumber.scss
+++ b/frontend/src/scenes/insights/views/BoldNumber/BoldNumber.scss
@@ -10,7 +10,8 @@
width: 100%;
padding: 2rem 3rem 3rem;
- .InsightCard & {
+ .InsightCard &,
+ .MarkdownNotebook__real-node & {
padding: 1rem;
}
@@ -27,7 +28,8 @@
@include screen($md) {
padding: 3rem 5rem 5rem;
- .InsightCard & {
+ .InsightCard &,
+ .MarkdownNotebook__real-node & {
padding: 2rem;
}
}