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: gap between cells for wasm (#1957)

Akshay Agrawal77ca40d0d002
diff --git a/frontend/src/components/editor/renderers/vertical-layout/vertical-layout.tsx b/frontend/src/components/editor/renderers/vertical-layout/vertical-layout.tsx
index 52382c3611..d0211419d3 100644
--- a/frontend/src/components/editor/renderers/vertical-layout/vertical-layout.tsx
+++ b/frontend/src/components/editor/renderers/vertical-layout/vertical-layout.tsx
@@ -99,9 +99,12 @@ const VerticalLayoutRenderer: React.FC<VerticalLayoutProps> = ({
</>
);
+ // in read mode (required for canShowCode to be true), we need to insert
+ // spacing between cells to prevent them from colliding; in edit mode,
+ // spacing is handled elsewhere
return (
<VerticalLayoutWrapper invisible={invisible} appConfig={appConfig}>
- {showCode ? (
+ {showCode && canShowCode ? (
<div className="flex flex-col gap-5"> {verticalCells}</div>
) : (
verticalCells