mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 09:30:14 +01:00
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";
|
css += item.css || "" + "\n";
|
||||||
});
|
});
|
||||||
const styleElement = document.createElement("style");
|
const styleElement = document.createElement("style");
|
||||||
styleElement.id = "pluginsStyle"
|
styleElement.id = "pluginsStyle";
|
||||||
styleElement.textContent = css;
|
styleElement.textContent = css;
|
||||||
document.head.append(styleElement);
|
document.head.append(styleElement);
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -83,7 +83,7 @@ const renderPDF = (id: string) => {
|
||||||
if (item.id.startsWith("snippet")) {
|
if (item.id.startsWith("snippet")) {
|
||||||
snippetCSS += item.innerHTML;
|
snippetCSS += item.innerHTML;
|
||||||
}
|
}
|
||||||
})
|
});
|
||||||
const html = `<!DOCTYPE html>
|
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}">
|
<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>
|
<head>
|
||||||
|
|
|
||||||
|
|
@ -1738,6 +1738,6 @@ export class Toolbar {
|
||||||
this.subElementCloseCB = undefined;
|
this.subElementCloseCB = undefined;
|
||||||
this.element.classList.add("fn__none");
|
this.element.classList.add("fn__none");
|
||||||
const rangePosition = getSelectionPosition(nodeElement, range);
|
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
Add a link
Reference in a new issue