From 4680e709f46fb4d00ac6e47779c157bf542530ed Mon Sep 17 00:00:00 2001 From: Vanessa Date: Sun, 5 Jan 2025 09:37:30 +0800 Subject: [PATCH] :rotating_light: --- app/src/layout/Wnd.ts | 2 +- app/src/layout/dock/Files.ts | 2 +- app/src/search/util.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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 {