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: cell spacing in run, html export (#1898)

Akshay Agrawala91333ce7530
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 9cbe180b52..dcc1569b6f 100644
--- a/frontend/src/components/editor/renderers/vertical-layout/vertical-layout.tsx
+++ b/frontend/src/components/editor/renderers/vertical-layout/vertical-layout.tsx
@@ -74,8 +74,8 @@ const VerticalLayoutRenderer: React.FC<VerticalLayoutProps> = ({
const canShowCode = evaluateCanShowCode();
- return (
- <VerticalLayoutWrapper invisible={invisible} appConfig={appConfig}>
+ const verticalCells = (
+ <>
{cells.map((cell) => (
<VerticalCell
key={cell.id}
@@ -96,6 +96,16 @@ const VerticalLayoutRenderer: React.FC<VerticalLayoutProps> = ({
kiosk={kioskMode}
/>
))}
+ </>
+ );
+
+ return (
+ <VerticalLayoutWrapper invisible={invisible} appConfig={appConfig}>
+ {showCode ? (
+ <div className="flex flex-col gap-5"> {verticalCells}</div>
+ ) : (
+ verticalCells
+ )}
{mode === "read" && (
<ActionButtons
canShowCode={canShowCode}