Skip to content

Commit 1b65e59

Browse files
committed
fix #7348 - jupyter cell generate: text and link are not on the same baseline
1 parent 0c5d84e commit 1b65e59

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/packages/frontend/jupyter/codemirror-editor.tsx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
declare const $: any;
99

10-
import { Button } from "antd";
1110
import { delay } from "awaiting";
1211
import CodeMirror from "codemirror";
1312
import { Map as ImmutableMap } from "immutable";
@@ -793,13 +792,16 @@ export const CodeMirrorEditor: React.FC<CodeMirrorEditorProps> = ({
793792
Enter code{setShowAICellGen == null ? "..." : " or "}
794793
</div>
795794
{setShowAICellGen != null ? (
796-
<Button
797-
type="link"
798-
style={{ marginLeft: "-15px", opacity: 0.7 }}
795+
<a
796+
style={{
797+
marginTop: "6px",
798+
opacity: 0.7,
799+
fontSize: "inherit",
800+
}}
799801
onClick={() => setShowAICellGen("replace")}
800802
>
801803
generate using AI...
802-
</Button>
804+
</a>
803805
) : undefined}
804806
</div>
805807
</div>

0 commit comments

Comments
 (0)