diff --git a/app/src/layout/Wnd.ts b/app/src/layout/Wnd.ts index d4dc45067..cefd6bfdd 100644 --- a/app/src/layout/Wnd.ts +++ b/app/src/layout/Wnd.ts @@ -168,7 +168,7 @@ export class Wnd { }) { const it = this as HTMLElement; if(!window.siyuan.currentDragOverTabHeadersElement) { - window.siyuan.currentDragOverTabHeadersElement = it + window.siyuan.currentDragOverTabHeadersElement = it; } else { if (!window.siyuan.currentDragOverTabHeadersElement.isSameNode(it)) { window.siyuan.currentDragOverTabHeadersElement.classList.remove("layout-tab-bars--drag"); diff --git a/app/src/layout/dock/Files.ts b/app/src/layout/dock/Files.ts index 441b2dff6..71b7e1d98 100644 --- a/app/src/layout/dock/Files.ts +++ b/app/src/layout/dock/Files.ts @@ -1181,7 +1181,7 @@ data-type="navigation-root" data-path="/"> countHTML = `${item.count}`; } const ariaLabel = this.genDocAriaLabel(item, escapeAriaLabel); - const paddingLeft = (item.path.split("/").length - 1) * 18 + const paddingLeft = (item.path.split("/").length - 1) * 18; return `
  • { if (options.edit.protyle.highlight.ranges.length > 0 && options.edit.protyle.highlight.ranges[options.edit.protyle.highlight.rangeIndex]) { - const blockElement = hasClosestBlock(options.edit.protyle.highlight.ranges[options.edit.protyle.highlight.rangeIndex].startContainer) + const blockElement = hasClosestBlock(options.edit.protyle.highlight.ranges[options.edit.protyle.highlight.rangeIndex].startContainer); if (blockElement && blockElement.getAttribute("data-node-id") !== options.id) { highlightById(options.edit.protyle, options.id); } else {