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
improvement: add borderless markdown and some ui fixes (#3038)
Shahmir Varqhad757fc368bd2
diff --git a/frontend/src/components/editor/Cell.tsx b/frontend/src/components/editor/Cell.tsxindex a643054b53..5115f63b1d 100644--- a/frontend/src/components/editor/Cell.tsx+++ b/frontend/src/components/editor/Cell.tsx@@ -332,12 +332,13 @@ const CellComponent = (ref: cellContainerRef,skip: !isMarkdown,onResize: (size) => {+ const cellTooShort = size.height && size.height < 68;const shouldBeInline =- (size.height && size.height < 68 && hasOutput) || false;+ isMarkdownCodeHidden && (cellTooShort || cellOutput === "below");setIsCellStatusInline(shouldBeInline);if (canCollapse && shouldBeInline) {- setIsCellButtonsInline(shouldBeInline);+ setIsCellButtonsInline(true);} else if (isCellButtonsInline) {setIsCellButtonsInline(false);}@@ -432,6 +433,7 @@ const CellComponent = (stopped: stopped,disabled: cellConfig.disabled,stale: status === "disabled-transitively",+ borderless: isMarkdownCodeHidden,});const HTMLId = HTMLCellId.create(cellId);@@ -608,7 +610,7 @@ const CellComponent = (className={cn("absolute flex flex-col gap-[2px] justify-center h-full left-[-34px] z-20",isMarkdownCodeHidden && cellOutput === "above" && "-top-7",- isMarkdownCodeHidden && cellOutput === "below" && "-bottom-10",+ isMarkdownCodeHidden && cellOutput === "below" && "-bottom-8",isMarkdownCodeHidden && isCellButtonsInline && "-left-[3.8rem]",)}>@@ -650,7 +652,12 @@ const CellComponent = (languageAdapter={languageAdapter}setLanguageAdapter={setLanguageAdapter}/>- <div className="shoulder-right">+ <div+ className={cn(+ "shoulder-right",+ isMarkdownCodeHidden && cellOutput === "below" && "top-14",+ )}+ >{!isCellStatusInline && cellStatusComponent}<div className="flex gap-2 items-end"><CellDragHandle />diff --git a/frontend/src/css/app/Cell.css b/frontend/src/css/app/Cell.cssindex 0935b4fcdc..a61f331857 100644--- a/frontend/src/css/app/Cell.css+++ b/frontend/src/css/app/Cell.css@@ -200,6 +200,18 @@}}+ /* Borderless styles for Cell */+ &.borderless {+ border-color: transparent;+ box-shadow: none;++ /* Apply the original styles */+ &:hover {+ border: 1px solid var(--gray-4);+ @apply shadow-smSolid shadow-shade;+ }+ }+/* -------------------------- Shoulders/Buttons ---------------------------- */.shoulder-right {display: inline-flex;