Skip to content

Commit 0f70f72

Browse files
committed
fix #7670 -- placeholder text in jupyter
1 parent 27bf677 commit 0f70f72

File tree

1 file changed

+11
-13
lines changed

1 file changed

+11
-13
lines changed

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

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -792,21 +792,19 @@ export const CodeMirrorEditor: React.FC<CodeMirrorEditorProps> = ({
792792
}}
793793
onClick={focus_cm}
794794
>
795-
<div style={{ whiteSpace: "nowrap", margin: "6px 5px 0 20px" }}>
795+
<div style={{ whiteSpace: "nowrap", margin: "6px 5px 0 10px" }}>
796796
Enter code{setShowAICellGen == null ? "..." : " or "}
797797
</div>
798-
{setShowAICellGen != null ? (
799-
<a
800-
style={{
801-
marginTop: "6px",
802-
opacity: 0.7,
803-
fontSize: "inherit",
804-
}}
805-
onClick={() => setShowAICellGen("replace")}
806-
>
807-
generate using AI...
808-
</a>
809-
) : undefined}
798+
<a
799+
style={{
800+
marginTop: "6px",
801+
opacity: 0.7,
802+
fontSize: "inherit",
803+
}}
804+
onClick={() => setShowAICellGen("replace")}
805+
>
806+
generate using AI...
807+
</a>
810808
</div>
811809
</div>
812810
);

0 commit comments

Comments
 (0)