Skip to content

Commit

Permalink
Merge pull request #140 from obgnail/dev
Browse files Browse the repository at this point in the history
update fencea_enhance
  • Loading branch information
obgnail authored Sep 3, 2023
2 parents 3208045 + f6db9f5 commit 188338f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugin/fence_enhance.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class fenceEnhancePlugin extends global._basePlugin {
font-size: 1.2em;
opacity: 0.5;
}
#write .fence-enhance .enhance-button {
#write .fence-enhance .enhance-btn {
cursor: pointer;
}
#write .fence-enhance .copy-code, .indent-code {
Expand Down Expand Up @@ -140,7 +140,7 @@ class fenceEnhancePlugin extends global._basePlugin {
})

document.getElementById("write").addEventListener("click", ev => {
const target = ev.target.closest(".fence-enhance .enhance-button");
const target = ev.target.closest(".fence-enhance .enhance-btn");
if (target) {
ev.preventDefault();
ev.stopPropagation();
Expand All @@ -164,7 +164,7 @@ class fenceEnhancePlugin extends global._basePlugin {

createButton = (className, action, hint, iconClassName) => {
const button = document.createElement("div");
button.classList.add("enhance-button");
button.classList.add("enhance-btn");
button.classList.add(className);
button.setAttribute("action", action);
hint && button.setAttribute("ty-hint", hint);
Expand Down

0 comments on commit 188338f

Please sign in to comment.