This commit is contained in:
parent
1fb7187936
commit
e54d8f1a4d
3 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
};
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue