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.

don't show sql bottom panel when cell is hidden (#5826)

Shahmir Varqha062970bfb2da
diff --git a/frontend/src/components/editor/cell/code/cell-editor.tsx b/frontend/src/components/editor/cell/code/cell-editor.tsx
index 75711d2d9a..093144f04a 100644
--- a/frontend/src/components/editor/cell/code/cell-editor.tsx
+++ b/frontend/src/components/editor/cell/code/cell-editor.tsx
@@ -396,8 +396,9 @@ const CellEditorInternal = ({
if (isMarkdown && hidden && hasOutput) {
editorClassName = "h-0 overflow-hidden";
} else if (hidden) {
+ // Shortens the editor and hides the cell panels
editorClassName =
- "opacity-20 h-8 [&>div.cm-editor]:h-full [&>div.cm-editor]:overflow-hidden";
+ "opacity-20 h-8 [&>div.cm-editor]:h-full [&>div.cm-editor]:overflow-hidden [&_.cm-panels]:hidden";
}
return (