Skip to content

Commit

Permalink
remove tooltip classname
Browse files Browse the repository at this point in the history
  • Loading branch information
mscolnick committed Feb 6, 2025
1 parent cc35b56 commit 37556b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/inline-edit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ const selectionPlugin = ViewPlugin.fromClass(
const options = view.state.facet(optionsFacet);
const keymaps = { ...defaultKeymaps, ...options.keymaps };
this.tooltip = document.createElement("div");
this.tooltip.className = "cm-tooltip cm-ai-tooltip";
this.tooltip.className = "cm-ai-tooltip";
this.tooltip.innerHTML = `<span>Edit <span class="hotkey">${formatKeymap(keymaps.showInput)}</span></span>`;
this.tooltip.style.cursor = "pointer";
this.tooltip.addEventListener("click", (evt) => {
Expand Down
2 changes: 1 addition & 1 deletion src/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { EditorView } from "@codemirror/view";

// Theme for AI features
export const aiTheme = EditorView.baseTheme({
".cm-tooltip.cm-ai-tooltip": {
".cm-ai-tooltip": {
userSelect: "none",
pointerEvents: "auto",
fontFamily: "system-ui, -apple-system, sans-serif",
Expand Down

0 comments on commit 37556b5

Please sign in to comment.