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: prevent margin collapse between consecutive cell outputs (#8215)

Ahmad Yasser3b3f3639f2a7
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 6c713cf9fc..647a5a8d0c 100644
--- a/frontend/src/components/editor/renderers/vertical-layout/vertical-layout.tsx
+++ b/frontend/src/components/editor/renderers/vertical-layout/vertical-layout.tsx
@@ -172,11 +172,9 @@ const VerticalLayoutRenderer: React.FC<VerticalLayoutProps> = ({
// spacing is handled elsewhere
return (
<VerticalLayoutWrapper invisible={invisible} appConfig={appConfig}>
- {showCode && canShowCode ? (
- <div className="flex flex-col gap-5"> {renderCells()}</div>
- ) : (
- renderCells()
- )}
+ <div className={cn("flex flex-col", showCode && canShowCode && "gap-5")}>
+ {renderCells()}
+ </div>
{mode === "read" && (
<ActionButtons
canShowCode={canShowCode}