Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

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

Vanessae54d8f1a4d2c
diff --git a/app/src/plugin/loader.ts b/app/src/plugin/loader.ts
index 1ead63d25e..1ce2270f46 100644
--- a/app/src/plugin/loader.ts
+++ b/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);
};
diff --git a/app/src/protyle/export/index.ts b/app/src/protyle/export/index.ts
index 93d22268f0..5933b41f7c 100644
--- a/app/src/protyle/export/index.ts
+++ b/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>
diff --git a/app/src/protyle/toolbar/index.ts b/app/src/protyle/toolbar/index.ts
index fbf66a9a69..be51ab6bf9 100644
--- a/app/src/protyle/toolbar/index.ts
+++ b/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);
}
}