Browse Source

:art: fix https://github.com/siyuan-note/siyuan/issues/9393

Vanessa 1 year ago
parent
commit
e54d8f1a4d
3 changed files with 3 additions and 3 deletions
  1. 1 1
      app/src/plugin/loader.ts
  2. 1 1
      app/src/protyle/export/index.ts
  3. 1 1
      app/src/protyle/toolbar/index.ts

+ 1 - 1
app/src/plugin/loader.ts

@@ -30,7 +30,7 @@ export const loadPlugins = async (app: App) => {
         css += item.css || "" + "\n";
     });
     const styleElement = document.createElement("style");
-    styleElement.id = "pluginsStyle"
+    styleElement.id = "pluginsStyle";
     styleElement.textContent = css;
     document.head.append(styleElement);
 };

+ 1 - 1
app/src/protyle/export/index.ts

@@ -83,7 +83,7 @@ const renderPDF = (id: string) => {
         if (item.id.startsWith("snippet")) {
             snippetCSS += item.innerHTML;
         }
-    })
+    });
     const html = `<!DOCTYPE html>
 <html lang="${window.siyuan.config.appearance.lang}" data-theme-mode="light" data-light-theme="${window.siyuan.config.appearance.themeLight}" data-dark-theme="${window.siyuan.config.appearance.themeDark}">
 <head>

+ 1 - 1
app/src/protyle/toolbar/index.ts

@@ -1738,6 +1738,6 @@ export class Toolbar {
         this.subElementCloseCB = undefined;
         this.element.classList.add("fn__none");
         const rangePosition = getSelectionPosition(nodeElement, range);
-        setPosition(this.subElement, rangePosition.left, rangePosition.top + 28, Constants.SIZE_TOOLBAR_HEIGHT);
+        setPosition(this.subElement, rangePosition.left, rangePosition.top - 48, Constants.SIZE_TOOLBAR_HEIGHT);
     }
 }