Skip to content

Commit

Permalink
🎨 fix siyuan-note#9393
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanessa219 committed Oct 10, 2023
1 parent 1fb7187 commit e54d8f1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/src/plugin/loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
};
Expand Down
2 changes: 1 addition & 1 deletion app/src/protyle/export/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion app/src/protyle/toolbar/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

0 comments on commit e54d8f1

Please sign in to comment.