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.
Python artificial-intelligencedagdata-sciencedata-visualizationdataflowdeveloper-toolsmachine-learningnotebookspipelinepythonreactivesqlweb-app
style: remove gap and border-radius for cell (#7237)
Shahmir Varqha2dfefad92568
diff --git a/frontend/src/components/editor/ai/ai-completion-editor.tsx b/frontend/src/components/editor/ai/ai-completion-editor.tsxindex 1ba5f9ed13..7fa8318aa2 100644--- a/frontend/src/components/editor/ai/ai-completion-editor.tsx+++ b/frontend/src/components/editor/ai/ai-completion-editor.tsx@@ -254,11 +254,14 @@ export const AiCompletionEditor: React.FC<Props> = ({};return (- <div className={cn("flex flex-col w-full rounded-[inherit]", className)}>+ <div+ data-ai-input-open={showInput}+ className={cn("flex flex-col w-full rounded-[inherit]", className)}+ ><divclassName={cn(- "flex items-center gap-2 border-b px-3 transition-all rounded-[inherit] rounded-b-none duration-300",- showInput && "max-h-[400px] min-h-11 visible",+ "flex items-center gap-2 px-3 transition-all rounded-[inherit] rounded-b-none duration-300",+ showInput && "max-h-[400px] border-b min-h-11 visible",!showInput && "max-h-0 min-h-0 invisible",)}>diff --git a/frontend/src/components/editor/notebook-cell.tsx b/frontend/src/components/editor/notebook-cell.tsxindex 290479f737..3b452ff6a7 100644--- a/frontend/src/components/editor/notebook-cell.tsx+++ b/frontend/src/components/editor/notebook-cell.tsx@@ -581,7 +581,11 @@ const EditableCellComponent = ({{...cellDomProps(cellId, cellData.name)}>{cellOutput === "above" && outputArea}- <div className={cn("tray")} data-hidden={isMarkdownCodeHidden}>+ <div+ className={cn("tray")}+ data-has-output-above={hasOutputAbove}+ data-hidden={isMarkdownCodeHidden}+ ><StagedAICellBackground cellId={cellId} /><div className="absolute right-2 -top-4 z-10"><CellToolbardiff --git a/frontend/src/css/app/Cell.css b/frontend/src/css/app/Cell.cssindex 8a090ef3ef..0968e0b0f3 100644--- a/frontend/src/css/app/Cell.css+++ b/frontend/src/css/app/Cell.css@@ -359,7 +359,9 @@position: relative;z-index: 1;- &:first-child .cm-editor {+ /* Round the top of the code editor unless there is output above or the AI prompt input is open */+ &:has([data-has-output-above="false"]):has([data-ai-input-open="false"])+ .cm-editor {border-top-left-radius: 9px;border-top-right-radius: 9px;}