mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-16 00:50:56 +08:00
This commit is contained in:
parent
3a24f7bbf8
commit
a335da26df
@ -240,10 +240,10 @@ class PDFDocumentProperties {
|
|||||||
// NOTE
|
// NOTE
|
||||||
if (mb >= 1) {
|
if (mb >= 1) {
|
||||||
return `${mb >= 1 && (+mb.toPrecision(
|
return `${mb >= 1 && (+mb.toPrecision(
|
||||||
3)).toLocaleString()} MB ${fileSize.toLocaleString()} bytes)`
|
3)).toLocaleString()} MB ${fileSize.toLocaleString()} bytes`
|
||||||
}
|
}
|
||||||
return `${mb < 1 && (+kb.toPrecision(
|
return `${mb < 1 && (+kb.toPrecision(
|
||||||
3)).toLocaleString()} KB (${fileSize.toLocaleString()} bytes)`
|
3)).toLocaleString()} KB (${fileSize.toLocaleString()} bytes`
|
||||||
}
|
}
|
||||||
|
|
||||||
async #parsePageSize(pageSizeInches, pagesRotation) {
|
async #parsePageSize(pageSizeInches, pagesRotation) {
|
||||||
|
@ -319,6 +319,7 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
|
overflow: initial;
|
||||||
|
|
||||||
#findInput {
|
#findInput {
|
||||||
width: 120px;
|
width: 120px;
|
||||||
|
@ -106,7 +106,7 @@ const genWorkspace = (workspaceDirElement: Element) => {
|
|||||||
html += `<li data-path="${item.path}" class="b3-list-item b3-list-item--narrow${window.siyuan.config.system.workspaceDir === item.path ? " b3-list-item--focus" : ""}">
|
html += `<li data-path="${item.path}" class="b3-list-item b3-list-item--narrow${window.siyuan.config.system.workspaceDir === item.path ? " b3-list-item--focus" : ""}">
|
||||||
<span class="b3-list-item__text">${pathPosix().basename(item.path)}</span>
|
<span class="b3-list-item__text">${pathPosix().basename(item.path)}</span>
|
||||||
<span data-type="remove" class="b3-list-item__action">
|
<span data-type="remove" class="b3-list-item__action">
|
||||||
<svg><use xlink:href="#iconTrashcan"></use></svg>
|
<svg><use xlink:href="#iconMin"></use></svg>
|
||||||
</span>
|
</span>
|
||||||
</li>`;
|
</li>`;
|
||||||
});
|
});
|
||||||
|
@ -17,7 +17,7 @@ export const abcRender = (element: Element, cdn = Constants.PROTYLE_CDN) => {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (abcElements.length > 0) {
|
if (abcElements.length > 0) {
|
||||||
addScript(`${cdn}/js/abcjs/abcjs-basic-min.js?v=6.1.7`, "protyleAbcjsScript").then(() => {
|
addScript(`${cdn}/js/abcjs/abcjs-basic-min.js?v=6.1.9`, "protyleAbcjsScript").then(() => {
|
||||||
abcElements.forEach((e: HTMLDivElement) => {
|
abcElements.forEach((e: HTMLDivElement) => {
|
||||||
if (e.getAttribute("data-render") === "true") {
|
if (e.getAttribute("data-render") === "true") {
|
||||||
return;
|
return;
|
||||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user