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: set cell editor height and overflow to hidden when hidden (#5391)

Shahmir Varqhacce318f62ebd
diff --git a/frontend/src/components/editor/cell/code/cell-editor.tsx b/frontend/src/components/editor/cell/code/cell-editor.tsx
index 3c83f1e99b..3b074007d2 100644
--- a/frontend/src/components/editor/cell/code/cell-editor.tsx
+++ b/frontend/src/components/editor/cell/code/cell-editor.tsx
@@ -373,7 +373,8 @@ const CellEditorInternal = ({
if (isMarkdown && hidden && hasOutput) {
editorClassName = "h-0 overflow-hidden";
} else if (hidden) {
- editorClassName = "opacity-20 h-8 overflow-hidden";
+ editorClassName =
+ "opacity-20 h-8 [&>div.cm-editor]:h-full [&>div.cm-editor]:overflow-hidden";
}
return (