Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

fix: stop nested scroll regions from chaining to the notebook (#10807)

Kiran Gadhavee750ab9d3641
diff --git a/frontend/src/components/editor/output/Outputs.css b/frontend/src/components/editor/output/Outputs.css
index 8fcb3e7519..baca7de111 100644
--- a/frontend/src/components/editor/output/Outputs.css
+++ b/frontend/src/components/editor/output/Outputs.css
@@ -72,6 +72,7 @@
/* Coarse hack to stop children from overflowing; doesn't seem to affect
* margin collapse. */
overflow: auto;
+ overscroll-behavior: contain;
@apply text-xs;
.data-key-pair:not(:last-child) {
diff --git a/frontend/src/components/ui/table.tsx b/frontend/src/components/ui/table.tsx
index b379d92b3a..aac4405636 100644
--- a/frontend/src/components/ui/table.tsx
+++ b/frontend/src/components/ui/table.tsx
@@ -7,7 +7,7 @@ const Table = React.forwardRef<
HTMLTableElement,
React.HTMLAttributes<HTMLTableElement>
>(({ className, ...props }, ref) => (
- <div className="w-full overflow-auto scrollbar-thin flex-1 print:overflow-hidden">
+ <div className="w-full overflow-auto overscroll-contain scrollbar-thin flex-1 print:overflow-hidden">
<table
ref={ref}
className={cn("w-full caption-bottom text-sm", className)}
diff --git a/frontend/src/css/app/Cell.css b/frontend/src/css/app/Cell.css
index 9d061bbcc1..1cbec9e1ba 100644
--- a/frontend/src/css/app/Cell.css
+++ b/frontend/src/css/app/Cell.css
@@ -82,6 +82,7 @@
.console-output-area {
max-height: 610px;
overflow: auto;
+ overscroll-behavior: contain;
}
/* Special case for particular components */
@@ -521,6 +522,7 @@
display: flow-root;
overflow: auto;
+ overscroll-behavior: contain;
}
.marimo-output-stale,